This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rsync's --delete and --exclude option


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.

Attachment: rsync-3.0.2-0.cygport
Description: Text document

Attachment: rsync-3.0.2-0.cygwin.patch
Description: Text document

Attachment: rsync-3.0.2-0.src.patch
Description: Text document

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]