Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to compare the current state of the filesystem to that stored in a backup created by dump?

I recently had some major corruption in the filesystem and my most recent backup is from several months ago. I want to compare the two in order to get an idea of how much was corrupted and hopefully see how much has changed since the backup.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Take a look at the restore command. It has a switch, -C which looks like what you're looking for.

excerpt from restore man page

-C     This  mode allows comparison of files from a dump.  Restore reads the 
       backup and compares its contents with files present on the disk. It 
       first changes its working directory to the root of the filesystem that
       was dumped and compares  the  tape  with the files in its new current 
       directory. See also the -L flag described below.
share|improve this answer
    
Perfect, thanks! –  sh1ftst0rm Aug 15 '13 at 10:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.