On Jan 19, 2010, at 5:58 AM, Leonardo Canducci wrote:
( cd source ; find . -type f -print0 | sort -z | xargs ls -s ) >
/tmp/source-stuff
( cd target ; find . -type f -print0 | sort -z | xargs ls -s ) >
/tmp/target-stuff
diff /tmp/target-stuff /tmp/source-stuff
you can use something like "md5sum" in place of "ls -s" if you want
a more
industrial strength check...
how does that compare to rsync -cn? Is it faster? safer?
It's probably about the same speed as "rsync -cn", but it doesn't
depend on rsync. I was thinking: if you don't trust rsync, then use
something else to generate the checksums. But if you trust rsync, why
bother with double-checking in the first place?
Rick
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]