Take the 2-minute tour ×

i use rsync tools between two server but it seem rsync make synchronous between servers according to file size and i need to make synchronous according modification time please how i can do it

for example file in date 2-3-2011 then updated on 5-3-2011

i want rsync to take the latest one 5-3-2011

share|improve this question

2 Answers 2

up vote 2 down vote accepted

rsync doesn't just work based on filesize; modification time is taken into account. You can also do it with checksums by using the --checksum option.

Take a look at this site for a detailed explanation of the rsync process: http://samba.anu.edu.au/rsync/how-rsync-works.html

share|improve this answer

rsync by default will use mod-time and size. Not sure why you would want to use it based on mod-time alone when size is a really effective quick check.

share|improve this answer
i need mod-time because some in some files i change data like "date" so that size didn't change –  Mohammad AL-Rawabdeh Mar 23 '11 at 16:37
Okay, well that's done by default automatically. –  Decado Mar 24 '11 at 5:33

Your Answer


