On Tue, Aug 29, 2000 at 04:14:54PM +1000, Mike Benoit wrote:
> Rsync has a few options for deleting files. But I was curious if you are 
> able to tell rsync to not delete specific files/dirs while not excluding 
> them all together.
> 
> ie:
> 
> /c/windows/
> 
> I have rsync, update that directory, and delete any files that aren't 
> supposed to be there. Could I have rsync update that directory, but _not_ 
> delete files specifically in that directory that aren't on the server side? 
> (I guess like a --delete-exclude=PATTERN command line option) Basically to 
> allow for extra drivers to be installed in windows and not have rsync 
> delete them. (I use windows as an example, but it really makes no 
> difference of course).
> 
> I suppose I could run rsync twice, first excluding /c/windows all together, 
> with delete enabled, then run it a second time only synchronizing 
> /c/windows and turn delete off entirely. Always that way around things if 
> it comes to that.

Interestingly, like this was just discussed last week.  See
    http://rsync.samba.org/listproc/rsync/current/0040.html

Rsync currently doesn't support it.

- Dave

Reply via email to