Selective --delete

Ashley M. Kirchner ashley at pcraft.com
Tue Jan 7 10:08:08 MST 2014


On Tue, Jan 7, 2014 at 9:44 AM, Paul Slootman <paul+rsync at wurtel.net> wrote:

>
> rsync will not touch files that have been --exclude'ed; unless you also
> specify --delete-excluded . So just specify those LIVE-only files in
> your exclude list.
>
>
Uh, that hasn't been my experience.  I just ran this and it happily deleted
the events folder.  I did verify that it gets excluded during the sync
portion as files that either exist or don't exist on either servers did not
get synced or deleted, but it did, at the end, delete the entire folder and
contents.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20140107/53f028e9/attachment.html>


More information about the rsync mailing list