rsync's --delete and --exclude option

David Rothenberger daveroth@acm.org
Fri May 9 14:48:00 GMT 2008


On 5/9/2008 6:45 AM, Richard Ivarson wrote:
> When you use rsync with option --delete and --exclude (for example 
> exclude='*.bak') then rsync will exclude such files from source and 
> destination and hence also not delete *.bak files on the destination.
> 
> However, would it be possible to still make rsync delete such excluded 
> files on the destination?

There is a --delete-excluded option in rsync 3.0.2 that does just that. 
The rsync in the Cygwin distro doesn't support it, but you can build 
your own version of 3.0.2 using cygport and the attached files.

-- 
David Rothenberger  ----  daveroth@acm.org

Live Free or Live in Massachusetts.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rsync-3.0.2-0.cygport
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080509/c279ef7f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rsync-3.0.2-0.cygwin.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080509/c279ef7f/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rsync-3.0.2-0.src.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080509/c279ef7f/attachment-0002.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list