Re: Comparing directories recursively

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/27/2017 05:27 PM, H wrote:
What is the best tool to compare file hashes in two different drives/directories such as after copying a large number of files from one drive to another? I used cp -au to copy directories, not rsync, since it is between local disks.
I typically use 'rsync -av -c --dry-run ${dir1}/ ${dir2}/ ' (or some variation) for this.  rsync works just as well on local disks as remote.  This isn't as strong of a comparison as even an md5, but it's not a bad one and gives you a quick compare.

You can even use git for this: 'git diff --no-index ${dir1}/ ${dir2}/' and that would be a stronger comparison.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux