Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.