Selective --delete

Paul Slootman paul+rsync at
Tue Jan 7 09:44:11 MST 2014

On Tue 07 Jan 2014, Ashley M. Kirchner wrote:
> My issue is with the --delete part.  While I want the procedure to delete
> extraneous files from the LIVE server when they are removed from the DEV
> one, there are a few files on LIVE that do not and will never exist on the
> DEV server, however they are required on the LIVE one.  Is there a way to
> have rsync NOT delete those?  Is there an equivalent exclude option for the

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.


More information about the rsync mailing list