[BUGS] Rsync syncing sync'd files

Jerahmy Pocott quakenet1 at optusnet.com.au
Mon Dec 24 17:39:49 EST 2007


Hello,

So I'm trying rsync to back up files to an SMB mount from a local  
filesystem. It seems to be working fine, EXCEPT it keeps synching  
these files that are already in sync! It claims their times don't  
match, but they do.. What is going on with it?

# rsync -rtOziv
building file list ... done
 >f..t.... Myob/file1.MYO
 >f..t.... Myob/file2.MYO
 >f..t.... Myob/file3.MYO
 >f..t.... Myob/file3.box

sent 1200986 bytes  received 108 bytes  343169.71 bytes/sec
total size is 254545027  speedup is 211.93

(That's with -i option, > means sent, f means file and t means time  
was reason for sync)

Running the sync again will produce the same result, synching the  
files it just did..

SMB Mount:
-rwxr-xr-x 3866624 Nov 27 15:55 file1.MYO*
-rwxr-xr-x 3145728 Nov 30 12:21 file2.MYO*
-rwxr-xr-x 1179648 Dec  3  15:34 file3.MYO*
-rwxr-xr-x  65536     Dec  3  15:34 file3.box*

Local FS:
-rwxr-xr-x  3866624 Nov 27 15:55 file1.MYO*
-rwxr-xr-x  3145728 Nov 30 12:21 file2.MYO*
-rwxr-xr-x  1179648 Dec  3 15:34 file3.MYO*
-rwxr-xr-x  65536      Dec  3 15:34 file3.box*

As you can see they are exactly the same..

The owner and groups are different, and the directories they are in  
may have different times as trying to set directory time on the SMB  
side causes an error, but there are other files in the same place that  
don't display this behavior and are of the same type, it's just these  
4 that do it..

Maybe I should not check for time differences?

Cheers everyone, have a good christmas!
J.


More information about the BUGS mailing list