rsyn to ignore the mode change
A directory on my portable drive has a mode of
drwx------
while the copied directory on my computer hard drive has a mode of
drwxr-xr-x
This causes rsync with the following options to update the directory
entry (not the content under the directory):
rsync -avn --delete $CHOME/$dir --modify-window=1
Since I usually do a dry-run to detect the genuine difference in files before
syncing so how to do I ask rsync to ignore such trivial
difference (or may be fatal to ignore ?) ? I have many such
lines due to "differences" in directories on the output of my screen and it hides though genuine difference.
I have no idea why the mode changes upon connecting the same
portable drive to CentOS 5.2 or CentOS 6.1, but this issue deserve
some attention.
Thanks!
|