Mike Reiche
2010-Jun-29 09:04 UTC
How to skip deletion of files which are newer on the receiver?
Hi. I try to create a duplex sync between client/server via two rsync calls. First step: Send new or updated files. # rsync -a -c -r -z -u --progress --delete --files-from=rsync-list.txt $SOURCE --filter='. rsync-filter.txt' $TARGET/ Second step: Receive new or updates files. # rsync -p -g -c -r -z -u --progress $TARGET/* $SOURCE That works fine for most circumstances. But the first command deletes all files from the receiver, even if they are newer. Changing the content (for differen checksum) or mtime of the receiver's file doesn't work. How to prevent that behavior? Regards, Mit freundlichen Gr??en, Mike Reiche | Softwareentwicklung
Matt McCutchen
2010-Jun-29 13:31 UTC
How to skip deletion of files which are newer on the receiver?
On Tue, 2010-06-29 at 11:04 +0200, Mike Reiche wrote:> I try to create a duplex sync between client/server via two rsync calls.Don't do that. Use unison (http://www.cis.upenn.edu/~bcpierce/unison/) instead. -- Matt