<div dir="ltr"><div><div><div>I have two servers which I will refer to as a LIVE and DEV servers.  On the LIVE server, I have a script that executes the following rsync command:<br><br>rsync --links --verbose --progress --archive \<br>
  --exclude="=imagebase=" --exclude="events" \<br>  --delete \<br>  rsync://<a href="http://rsyncuser@DEV.domain.com/path/on/DEV">rsyncuser@DEV.domain.com/path/on/DEV</a> /path/on/LIVE/<br><br></div>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 --delete procedure so that it would still delete whatever got removed from the DEV machine, but it leaves those files I tell it to ignore?  I have both individual files as well as entire paths that would need to be spared from getting unceremoniously deleted ... while others do need to get pruned if necessary (because they no longer exist on the DEV one.)<br>
</div></div></div>