Correct, resumable, large-file flags

Mark Raynsford list+org.samba at
Fri Jul 26 19:15:27 UTC 2019


I'm a long-time rsync user, but I've encountered a case today and I
just can't seem to get rsync to do the right thing.

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/

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.

I've seen this:

But, quite frankly, I feel like I've tried every combination of flags
and can't get the behaviour I'm looking for. Either rsync copies the
files in-place (violating the invariant that a file in B should should
not be visible by the name it had in A before the contents match), or
it places partial files in the same directory (or in a
separate .rsync-partial directory) but then ignores them next time the
transfer runs.

Can someone spell it out for me? Which flags do I need?

Mark Raynsford |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the rsync mailing list