https://bugzilla.samba.org/show_bug.cgi?id=2218
Summary: inplace-if-low-disk
Product: rsync
Version: 2.6.3
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: baldvin@angel.elte.hu
QAContact: rsync-qa@samba.org
Maybe it seems a bit perverse, but I have an idea of a feature that
I'd really like. It is "--inplace-if-low-disk". Before writing
a file, rsync could check the disk space available, and if it
is less than the size of the file to be written, it could use
the inplace mode for that file.
Every once in a while I keep huge files on user partitions (partition
backups, usually). I have scripts using rsync to mirror those
filesystems, failing if there is a change in those files.
(I am not competely idiot, just almost. It's quite a big system,
having hundreds users. We don't have too much space available,
so the only really huge partition is /u... In the case of a
break-in, I usually have to dd many partitions, and there is
only /u for that...)
Mathematically there would be a possibility of --fit-agressively
or something, which would calculate the order of transfering files
so that there is no need of extra space at the receiving side
ever. However, an algorithm like this is quite a work to do.
That's why I asked about your opinion of --inplace-if-low-disk.
The usual case would be solved by that (having that there are
two types of files: small ones, and extra large ones).
If you are accept the idea, I am also willing to code a little... :)
Baldvin
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.