Bash – modification time rsync option

bashcommand-line-interfacersync

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

Best Answer

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