https://bugzilla.samba.org/show_bug.cgi?id=10540
Summary: --max-transfer and --create-freespace options for
working with limited space
Product: rsync
Version: 3.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
In order to use options such as --delay-updates etc. it is necessary to ensure
a target file-system has plenty of free space, with rsync unable to do anything
if space runs out, other than to throw error after error. This usually
necessitates either enough capacity that this should never happen, multi-stage
transfers, or pre-flight scripts to guess required space and make sure that
much is free.
What I'd like to propose are two options to give rsync the ability to manage
its requirement for free-space itself, these would be:
--max-transfer, this option sets a limit on how much data rsync will transfer,
once this limit is reached rsync will stop with a soft-error. Use of a
partial-dir is recommended as it allows an incomplete file to be picked up,
while files that did complete within the transfer size window will be moved
into placed as normal.
--create-freespace, this option, when set, tells rsync that it can attempt to
free up space if it runs out. To do-so, it will first perform any pending
deletions (e.g - from --delete-during), before moving delayed updates into
position. If this still leaves it with insufficient free-space then it throw an
error and stop.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- 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