Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 12030] rsync leaves temporary files when transfer is interrupted.

9 views
Skip to first unread message

samba...@samba.org

unread,
Jul 20, 2016, 5:49:46 PM7/20/16
to
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #1 from Kevin Korb <rs...@sanitarium.net> ---
By default rsync does delete the incomplete file when it is aborted. The
override for that is --partial (which is implied by -P).

However, it also depends on how the rsync is interrupted. If it crashed or was
killed then it wouldn't have the opportunity to clean up. If network
connectivity was lost then it is possible that the sshd and rsync are actually
still running waiting to receive the rest of that file.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
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

samba...@samba.org

unread,
Jul 30, 2016, 6:03:14 PM7/30/16
to
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #2 from Yuri <yu...@rawbw.com> ---
The intelligent way to handle this is to verify the leftover temporary file
content with partial checksums and reuse it if the content is the same as an
incoming file.

samba...@samba.org

unread,
Jul 30, 2016, 6:07:50 PM7/30/16
to
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #3 from Kevin Korb <rs...@sanitarium.net> ---
If you use --partial or --inplace and you don't use --whole-file that is
exactly what it will do.
0 new messages