-r - means recursive
-q - means give only differences
2. rsync -n -avrc /abc/home/sample1/* server2:/abc/home/sample2/
https://stackoverflow.com/a/19410791
rsync -n -avr --size-only --delete /abc/home/sample1/ server2:/abc/home/sample2/
3. using "meld".
It is slow, but graphical interface
4. using "find"
A good way to do this comparison is to use
find with md5sum , then a diff .Example: Use find to list all the files in the directory then calculate the md5 hash for each file and pipe it to a file:
Do the same procedure to the another directory:
Then compare the result two files with "diff":
This strategy is very useful when the two directories to be compared
are not in the same machine and you need to make sure that the files are
equal in both directories. |
Brak komentarzy:
Prześlij komentarz