Why doesn't rsync update this file?

Jeremy Sanders jeremy at jeremysanders.net
Mon Jul 25 04:09:39 MDT 2011


Hi - Comparing some backups with original data, I've found a file which is 
transferred if --checksum is enabled, but isn't normally. Strangely the 
mtime of the file appears to be different. I don't know why rsync isn't 
copying it.

I'm doing
[root at localsys tmp]# rsync -ravv remote:/root/tmp/ ./
opening connection using: ssh remote rsync --server --sender -
vvlogDtpre.iLsf . /root/tmp/ 
receiving incremental file list
delta-transmission enabled
coolingfit.pro~ is uptodate
total: matches=0  hash_hits=0  false_alarms=0 data=0

sent 17 bytes  received 141 bytes  105.33 bytes/sec
total size is 2963  speedup is 18.75


Here is the file on localsys:
[root at localsys tmp]# stat coolingfit.pro~
  File: `coolingfit.pro~'
  Size: 2963            Blocks: 8          IO Block: 4096   regular file
Device: 900h/2304d      Inode: 45682225    Links: 1
Access: (0600/-rw-------)  Uid: (10009/ecackett)   Gid: (  100/   users)
Access: 2011-05-12 13:56:56.328892298 +0100
Modify: 2010-08-02 15:37:04.000000000 +0100
Change: 2011-07-25 10:59:37.832760381 +0100

Here is the file on remote:
remote:~/tmp:# stat coolingfit.pro~ 
  File: `coolingfit.pro~'
  Size: 2963            Blocks: 8          IO Block: 4096   regular file
Device: 801h/2049d      Inode: 656815      Links: 1
Access: (0600/-rw-------)  Uid: (10009/ecackett)   Gid: (  100/   users)
Access: 2011-07-24 02:40:35.683739353 +0100
Modify: 2010-08-02 15:37:04.780737333 +0100
Change: 2011-07-25 11:01:12.297837379 +0100

As far as I can see --modify-window should be zero for default for an exact 
match (from the manual). I've tried setting it to zero but it doesn't update 
the file.

Any idea what I'm doing wrong?

This is rsync c0d07c098724ee8c382a498cab991f7d8467d778 in the b3.0.x branch 
on Fedora 14.

Thanks

Jeremy




More information about the rsync mailing list