[Bug 2881] delete-exclude

samba-bugs at samba.org samba-bugs at samba.org
Fri Jul 15 21:20:40 GMT 2005


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


wayned at samba.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From wayned at samba.org  2005-07-15 14:20 -------
I assume you don't want to do this:

--exclude=/var

... which would both prevent any copying from /var and prevent any deleting in
var.  If so, do this:

--filter='protect /var'       OR       -f 'P /var'

That tells the receiving side that all files in the /var hierarchy should be
protected from being deleted (assuming that you're transferring from /).  You
might want to change that to be more specific, though, such as protecting
/var/run and /var/lock, but that's up to you.

Note that the --filter option was added in 2.6.4, so if you're pulling, the
receiving side needs to be at least 2.6.4, and if you're pushing, both sides
need to be at least 2.6.4.

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