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

link|improve this question

feedback

2 Answers

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

link|improve this answer
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.