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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12030

            Bug ID: 12030
           Summary: rsync leaves temporary files when transfer is
                    interrupted.
           Product: rsync
           Version: 3.1.2
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: core
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

When the transfer 'rsync -a dir remote:.' is interrupted and then reran, it
leaves the temporary files with a period as a prefix and suffixes like this:
.T5umN0

It will be great if rsync first cleaned up the previously left temp files that
have the same name pattern.

--
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
Reply | Threaded
Open this post in threaded view
|

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

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #1 from Kevin Korb <[hidden email]> ---
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
Reply | Threaded
Open this post in threaded view
|

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

samba-bugs
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #2 from Yuri <[hidden email]> ---
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.

--
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
Reply | Threaded
Open this post in threaded view
|

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

samba-bugs
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=12030

--- Comment #3 from Kevin Korb <[hidden email]> ---
If you use --partial or --inplace and you don't use --whole-file that is
exactly what it will do.

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