[KLUG Members] Directory Tree Comparison Utilities?

Peter Buxton members@kalamazoolinux.org
Mon, 30 Jun 2003 02:28:02 -0400


On Sun, Jun 29, 2003 at 11:39:43PM -0400, Andrew Thompson was only escaped
   alone to tell thee:

> Basically, I need to compare some directory trees to their copies on
> CD-ROM. I've read that diff could be used to compare directories, but
> I'm not sure if that will really do what I need, based on the man
> page.  Is this really the best utility for the purpose, or does anyone
> know of a better one out there somewhere? If I do use 'diff', what
> options should I use?

tar is not as sexy as a live CD-R filesystem, but it obviously handles
these incremental issues better.

Assuming your dir structure has not changed much, it sounds like you
need to script (or find) a utility to check each file on the CD-R with
it on the drive.

Which is why tar is better than a live CD-R filesystem.

If you like, you can copy the files to a new dir on the drive, and then
use rsync to update it (rsync -rutl SRC DEST) and then reburn it as a
tar file.

-- 
-81
OS/2? Hah. I've got Linux. What a cool name. -- l.torvalds