> >>Is there a way to get a reliable listing of the source files, do a > >>byte for byte comparison, and report only the ones that are > different? > > > >Isn't that what the cmp command does? > > > > Yeah, well, I just feel better when the copy seems to be a > perfect copy. I would actually prefer to *know* that the > copy is just as reliable as the original. And if the dates > or sizes are different, it just *feels* like they are not > reliably the same.
After doing a cp -a (or rsync or whatever), if you run "du -s" on ./orig_dir and ./dest_dir almost always the sizes will be different for reasons like others mentioned about the "directory" files taking less space in the destination hierarchy. Naturally, if you instead use dd to copy entire partitions, they'll be exactly the same. But then again, you're not dealing at the file system level. -Jon -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
