Le jeudi 15 novembre 2007, Maxim Veksler a écrit : > Hello, > > I have 2 servers I'm synchronizing using rsync, I have a situation where I > : > > 1. rsync from rnd-dev2 to rnd-dev1 > 2. change the rsynched file on rnd-dev1 > 3. rsync from rnd-dev2 to rnd-dev1 again > 4. File gets overridden on rnd-dev1 over though it has newer change > time then file on rnd-dev2.
I don't see any issue here. > #### Note that file got rsynced from rnd-dev2 and had it's change date > updated to older time (of rnd-dev2). As well as the content that got > replaced by the out dated version on rnd-dev2. Bummer... > > > What am I missing to get it do the right thing? I would expect rsync > when called the second time from rnd-dev2 to recognize that the file > on rnd-dev1 is newer and to NOT replaced it. Rsync has never check date recency by default, if time or size differ, rsync synchronize the file. Found in man page: -u, --update skip files that are newer on the receiver which is probably what you need in this case.
signature.asc
Description: This is a digitally signed message part.
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html