rsync without copying files when the only difference is the time time
How to ask rsync not to copy files from A to B when the only difference is
in the creation time and probably permission ?
I have this problem when I used scp rather than rsync to copies files.
Later when I tried to rsync -av --delete, it seems I have to redo what scp has done just
because the time stamp is different ! Imagine I spend hours to scp
the huge across different platforms.
well you can use the --checksum option but that involves.... well... a checksum being calculated for each file. by default rsync will copy on different times and sizes, the only other thing to go on is the contents of the file itself, which would most easily be a checksum.
Actually though, maybe you want this, for a looser perspective...
Thanks for the reply. I created the thread because I was waiting for the rsync process to be completed. However, it seems the second round of
rsync -rltgoDv --delete --modify-window=1
is rather quick. I guess the rsync first works out checksum and decides to skip the copying the content but update only the time stamps /permission etc ?
|All times are GMT -5. The time now is 11:17 PM.|