--delete --force Won't Remove Directories With Dotnames
Wayne Davison
wayned at samba.org
Fri Mar 2 21:14:17 GMT 2007
On Fri, Mar 02, 2007 at 10:37:04AM -0500, Matt McCutchen wrote:
> Maybe rsync should automatically delete a directory's partial dir when
> it finishes processing files immediately in that directory.
I haven't wanted to do that to allow two different rsyncs to copy a
(different) file into the same directory at the same time.
One thing we should be doing is to make use of the new perishable
attribute when creating our auto-generated rules. So, the partial
directory would get a "Pp .DIRNAME/" rule, which will allow the
directory to be deleted when the parent directory goes away. A
similar change is needed for the auto-protect rules that are added
for the backup suffix.
Attached is a patch for this. This is for the CVS version, so someone
using 2.6.9 would need to first patch in the perishable filter support
before this would be useful.
..wayne..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto-perishable.diff
Type: text/x-diff
Size: 840 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20070302/9660c6a9/auto-perishable.bin
More information about the rsync
mailing list