Selective --delete

Wayne Davison wayned at
Sun Jan 12 14:51:35 MST 2014

On Tue, Jan 7, 2014 at 9:08 AM, Ashley M. Kirchner <ashley at>wrote:

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

The only way that is possible is if (1) the folder wasn't actually named
"events" (e.g. "Events", or had a trailing space, etc.) or (2) if something
specified --delete-excluded or a similar filter-risk option somehow to
rsync (e.g. via alias, function, or wrapper script).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list