DO NOT REPLY [Bug 7885] rsync fills the disk blocking the system

samba-bugs at samba.org samba-bugs at samba.org
Sat Jan 1 13:03:26 MST 2011


https://bugzilla.samba.org/show_bug.cgi?id=7885


wayned at samba.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|NEW                         |ASSIGNED




------- Comment #1 from wayned at samba.org  2011-01-01 14:03 CST -------
Assigning special meaning to /media differs by OS, and is not something that
rsync should handle.  A backup script that is going to use rsync should
definitely check if the path it is going to use is properly mounted first.

Not overflowing a destination disk is a difficult problem to handle in an
efficient manner, since (1) we don't know how much space we need when we start,
(2) other processes could be using space during our run, making an initial
check inaccurate, (3) block sizes inefficiencies and directory-space
requirements are hard to compute, and (4) the destination tree may be split
over multiple volumes.  One potential solution might be to have a command-line
option that would tell rsync to check specific mount points at specific
intervals and exit if below a given percent.  However, such a check idiom might
be better written as a helper script that could be used to run rsync, regularly
check the destination filesystems via df, and kill rsync should space
requirements diminish below desired levels.  If someone would like to write
such a helper script, I'd be glad to include it in the contrib directory.


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


More information about the rsync mailing list