[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rsync
Subject:    Re: Proposal: cache directory tagging convention
From:       Wayne Davison <wayned () samba ! org>
Date:       2004-07-21 1:58:52
Message-ID: 20040721015852.GA6247 () blorf ! net
[Download RAW message or body]

On Tue, Jul 20, 2004 at 10:31:47AM -0400, Anthony Iano-Fletcher wrote:
> A while back John Bowman released a more general solution to
> this problem. He added an extra option:
> 	--rsync-exclude=FILE
> [...] Was this patch ever rolled into the main line distribution?

The was promoted to the "patches" dir, where it underwent substantial
improvement.  You can still find it in the Attic of the patches dir in
CVS under the name perdir-exclude.diff.  It was removed because it was
replaced with a more powerful idiom that can accomplish the same thing
and a good bit more:  merge files.  See this patch:

http://rsync.samba.org/ftp/unpacked/rsync/patches/merge-exclude-file.diff

Using this "merge" patch you'd specify these options to work just like
the --rsync-exclude=FILE option:

    --exclude='. FILE' --inherit=.

However, the exclude order remains unchanged in the "merge" diff, unlike
in John's patch where it was reversed.  With merge files, inheritance is
optional, you can specify more than one file to look for in each dir,
and merge files can even specify other merge files.  See the doc changes
in the patch for full details.

This patch will probably be applied to a future version, but I haven't
had a chance to fully test the daemon mode's path-sanitizing code to
ensure that it is well protected against malicious use.

..wayne..
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic