rsync --delete (but not all files) question

Wayne Davison wayned at samba.org
Tue Jun 10 14:53:02 GMT 2008


On Tue, Jun 10, 2008 at 03:03:23AM -0700, GiveMF wrote:
> So I want to sync from the dev directory (which doesn't have .svn
> directories) to one that does.

An exclude does two things:  it prevents files that match from being
transferred from the sender, and it protects files that match from being
deleted on the receiver.  You can also specify those two actions
separately using a filter rule.  In your case, the easiest thing to do
is just to add "- .svn/" into your excludes so that all .svn directories
are excluded.

..wayne..


More information about the rsync mailing list