exclude all but specifice files in dir

Harry Putnam reader at newsguy.com
Wed Feb 22 09:18:11 GMT 2006


Matt McCutchen <hashproduct at verizon.net> writes:

> On Wed, 2006-02-15 at 18:33 -0600, Harry Putnam wrote:
>> Wayne Davison <wayned at samba.org> writes:
>> > On Tue, Feb 14, 2006 at 03:09:48AM -0600, Harry Putnam wrote:
>> >>   - /.kde*
>> >
>> > That doesn't exclude anything, since you already included things that
>> > match that.  You should be using "- *" to exclude everything else other
>> > than what was explicitly included.
>> 
>> Can I do something that is isolated to ~/.kde?
>
> How about "- /.kde**" ?  That will exclude anything under .kde that is
> not matched by an earlier include rule.

I guess that was a good try but it doesn't work for me.

These entries in rsync_exclude:
  + .kde*/share/apps/konqueror/bookmarks.xml
  /.kde**

When the source is ~/

Results in NOTHING under .kde* being moved to dest



More information about the rsync mailing list