Proposal: cache directory tagging convention
wayned at samba.org
Wed Jul 21 01:58:52 GMT 2004
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:
> [...] 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:
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.
More information about the rsync