Correct, resumable, large-file flags

Francis.Montagnac at Francis.Montagnac at
Sat Jul 27 05:59:56 UTC 2019


On Fri, 26 Jul 2019 20:15:27 +0100 Mark Raynsford via rsync wrote:

> I want to mirror a directory A on server to a
> directory B on The directory A contains very
> large but essentially read-only files. A server process on
> 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/


  rsync -avz --delete-after --delay-updates --partial /A/

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.


More information about the rsync mailing list