Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:

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


By posting your answer, you agree to the privacy policy and terms of service.

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