why does --size-only not detect change only is size (but also time)?

CSights csights at fastmail.fm
Wed Apr 18 23:37:44 GMT 2007


Hi,
	I'm wondering why when I use --size-only on the same file, except the 
modification time, rsync transfers the modification time?
	I was under the impression that --size-only caused rsync to transfer files 
based upon differences in the size of the file.

For example:

#cp Untitled.pdf Untitled-2.pdf

#touch Untitled.pdf

#rsync -ani --size-only Untitled.pdf Untitled-2.pdf
.f..t...... Untitled.pdf

#ls -al --block-size=1 Untitled*
-rw------- 1 csights csights 20696 2007-04-18 19:00 Untitled-2.pdf
-rw------- 1 csights csights 20696 2007-04-18 19:08 Untitled.pdf


	It seems to me as though this file should not be transfered because the sizes 
are the same.

Thanks,
	C.



More information about the rsync mailing list