Hi
On Fri, 26 Jul 2019 20:15:27 +0100 Mark Raynsford via rsync wrote: > I want to mirror a directory A on server www1.example.com to a > directory B on www2.example.com. The directory A contains very > large but essentially read-only files. A server process on > www1.example.com periodically creates new large files and deletes old > ones. I want to synchronize the directories roughly every ten minutes. > It's important that a file in B only becomes "visible" (that is, has > the same name as a file in A) when the two files contain the exact > same content. Files that no longer exist in A should be deleted from B. > An initial pass: > www1$ rsync -avz --delete-after /A/ www2.example.com:/B/ Try: rsync -avz --delete-after --delay-updates --partial /A/ www2.example.com:/B/ The man indicate also for --delay-updates: See also the "atomic-rsync" perl script in the "support" subdir for an update algorithm that is even more atomic (it uses --link-dest and a parallel hierarchy of files). PS: You may prefer also: - using -i (--itemize-changes) instead of -v - do not compress (no -z) > This works, but the transfers are not resumable for some reason. If I > ^C the rsync process and then run it again, I see partial files left in > B, and rsync ignores these the next time I run the command. Weird: never seen that. -- francis -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html