@lyse@lyse.isobeef.org that -P
is a life saver when running rsync
over spotty connections. In my very illiterate opinion, it should always be a default.
@david@collantes.us Weird, I always thought that rsync automatically resumes the up- or download when aborted. But the manual indicates otherwise with --partial
(-P
is --partial --progress
).
@lyse@lyse.isobeef.org If rsync is interrupted, it doesn’t delete any files that were transferred completely so it will “resume” from that last complete transfer. However, it does delete any partially transferred file. --partial
keeps that partial file around on the destination machine so it can continue right where it left off.
@mckinley@twtxt.net I could have sworn that it resumed even a partial file the other week. But maybe that was because the first attempt used scp
when the connection broke. And then rsync
detected that only the last part of that file was incomplete and transferred the missing bits. So, lucky by accident. In any case, I will always include -P
from now on. :-)