![]() n, -dry-run perform a trial run with no changes made ![]() The same for dir2 #from the rsync -help : ![]() With the previous line, you will get files that are in dir1 and are different (or missing) in dir2. Maybe one option is to run rsync two times: rsync -rtOvcs -progress -n /dir1/ /dir2/ Or as a single command using process substitution: diff every file is listed in output then): git diff -no-index dir1/ dir2/ Then compare the result two files with diff: diff -u dir1.txt dir2.txt Use find to list all the files in the directory then calculate the md5 hash for each file and pipe it sorted by filename to a file: find /dir1/ -type f -exec md5sum + | sort -k 2 > dir2.txt A good way to do this comparison is to use find with md5sum, then a diff.
0 Comments
Leave a Reply. |