I want to use rsync to diff two folders (with checksum) by using dry-run and itemize changes like this: rsync -rni --checksum /dir1/ /dir2/> ~/Desktop/diff.log However, I read that in --dry-run rsync wont do checksums. Is this true? If it is, is there a way to force checksums i dry-run mode?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It will work but why not just use diff -r ? Or a dedicated file validation utility like cfv? Rsync isn't even smart enough to not bother checksumming things that don't even have a comparison file. On 12/20/2014 09:42 PM, eightfold ? wrote:> I want to use rsync to diff two folders (with checksum) by using > dry-run and itemize changes like this: rsync -rni --checksum /dir1/ > /dir2/> ~/Desktop/diff.log > > However, I read that in --dry-run rsync wont do checksums. Is this > true? If it is, is there a way to force checksums i dry-run mode? >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlSWNv4ACgkQVKC1jlbQAQflyACdH6f931vYWxy7xluW0cnnOfc0 TSIAn0A8P78vxSkTa9pJDwRAwmBYw1A+ =UfSG -----END PGP SIGNATURE-----
I chose rsync over diff -r because diff -r is a binary comparison and it takes longer than creating a checksum. Isn't that correct? I did not understand this:> Rsync isn't even smart enough to not bother checksumming things that don't even have a comparison file.--checksum seems to work as you say even in --dry-run mode. At least it takes a lot of time, which should be a good sign.> Date: Sat, 20 Dec 2014 21:57:02 -0500 > From: kmk at sanitarium.net > To: rsync at lists.samba.org > Subject: Re: How to force checksum in dry-run > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > It will work but why not just use diff -r ? Or a dedicated file > validation utility like cfv? > > Rsync isn't even smart enough to not bother checksumming things that > don't even have a comparison file. > > On 12/20/2014 09:42 PM, eightfold ? wrote: > > I want to use rsync to diff two folders (with checksum) by using > > dry-run and itemize changes like this: rsync -rni --checksum /dir1/ > > /dir2/> ~/Desktop/diff.log > > > > However, I read that in --dry-run rsync wont do checksums. Is this > > true? If it is, is there a way to force checksums i dry-run mode?-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20141221/9a946ab9/attachment.html>
Seemingly Similar Threads
- How to force checksum in dry-run
- LLVM 3.9 RC2's SCCP pass removing calls to external functions?!
- LLVM 3.9 RC2's SCCP pass removing calls to external functions?!
- [PATCHv3 vringh] caif_virtio: Introduce caif over virtio
- [PATCHv3 vringh] caif_virtio: Introduce caif over virtio