Subject: Re: "DUMP: The ENTIRE dump is aborted."
To: None <netbsd-help@NetBSD.org>
From: Henry Nelson <netb@yuba.ne.jp>
List: netbsd-help
Date: 06/18/2006 08:23:23
On Sat, Jun 17, 2006 at 05:40:19PM +0200, Stefan 'Kaishakunin' Schumacher wrote:
> Also sprach Henry Nelson (netb@yuba.ne.jp)
> > Is there some tool for checking the backup?
> 
> mtree(8) is perfect for that.

I tried mtree, but there is a LOT of output.  If there is no "missing"
or "extra", is that supposed to mean the files are the same in the
two locations?  Is there some filter that can be applied to only give
output when files are different?  (Like `diff -r`?)

Is it best to break the check into two parts, 1) create a specification
file for the source partition (the one that was backed up with dump), and
then 2) compare the new partition (where the data was restored) against
the file created in 1)?

     mtree -c -p /var -x > /backup/var-mtree
     cat /backup/var-mtree |(mtree -p /backup/var)

or

Use a pipe to connect the standard out of the specification of the source
partition with the standard in of the check on the new file system?

     (mtree -c -p /var -x)|(mtree -p /backup/var -x)

or it doesn't matter.  Wonder if the syntax of these command lines are
okay?  Or better way to do it?

-- 
henry nelson
  WWW_HOME=http://yuba.ne.jp/~home/