LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync -u Does it update the contents of a dir if that dir is changed? (https://www.linuxquestions.org/questions/linux-software-2/rsync-u-does-it-update-the-contents-of-a-dir-if-that-dir-is-changed-632189/)

crazyivan 04-01-2008 09:53 AM

rsync -u Does it update the contents of a dir if that dir is changed?
 
Crew!

Does rsync update the contents of a directory when the date-stamp of this directory differs from its destination?

Cheers.

colucix 04-02-2008 03:08 AM

Quote:

Originally Posted by crazyivan (Post 3107198)
Does rsync update the contents of a directory when the date-stamp of this directory differs from its destination?

No. This is the default behaviour of rsync. The -u (update) option tells rsync to skip files that are newer on the receiver, that is if an already existing files on the destination is newer than the source one, it is not "downgraded" to a preceeding version.


All times are GMT -5. The time now is 11:07 AM.