I have two same files, on local machine and on remote one. Their sizes are equal, and file on local machine is newer than on remote one - but rsync still attempts to copy the file.
I invoke rsync as follows:
rsync -nv -e "ssh -p 2222" user@host:/data/file.fif data/file.fif
(if I don't use
-n option, it initiates the copy operation)
Rsync docs explicitly state that it shouldn't be happening:
Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified time.
# remote file File: `data/fif/Skovorodko_Olga_45_raw.fif' Size: 1137551966 Blocks: 2221784 IO Block: 4096 regular file Device: fd00h/64768d Inode: 286338 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1037/ platon) Gid: ( 1047/ platon) Access: 2013-08-08 18:40:16.907581658 +0400 Modify: 2013-07-16 12:01:09.158763284 +0400 Change: 2013-07-16 12:01:09.158763284 +0400 # local file File: `data/fif/Skovorodko_Olga_45_raw.fif' Size: 1137551966 Blocks: 2221792 IO Block: 4096 regular file Device: 801h/2049d Inode: 12987232 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1005/ platon) Gid: ( 1003/ platon) Access: 2013-08-08 19:02:57.146223369 +0400 Modify: 2013-08-08 19:02:57.146223369 +0400 Change: 2013-08-08 19:02:57.146223369 +0400
Why does this happen?
rsync --size-only results file not being copied:
delta-transmission enabled Skovorodko_Olga_45_raw.fif is uptodate total: matches=0 hash_hits=0 false_alarms=0 data=0 sent 14 bytes received 114 bytes 85.33 bytes/sec total size is 1137551966 speedup is 8887124.73 (DRY RUN)