--exclude patterns
Matt McCutchen
matt at mattmccutchen.net
Thu Jan 31 04:33:26 GMT 2008
On Thu, 2008-01-31 at 15:30 +1100, Anthony Morton wrote:
> >> The shell does not strip the single quotes because they are inside
> >> double quotes. Thus, rsync is getting filter patterns containing
> >> single quotes, which would obviously prevent the filters from
> >> matching.
> >> You can just remove the single quotes, but then the shell will try
> >> to expand the wildcards when it expands $EXCLUDE.
> I have a similar problem. I'm trying to specify a custom per-
> directory filter using
>
> --filter='dir-merge .rsync-filter-m'
>
> but because the whole thing is double-quoted the filter rule arrives
> in single quotes. I can't simply leave out the quotes here because
> the --filter option only gets the first token as its argument.
>
> Is there a simple solution here? The bash man page leaves me cross-
> eyed.
You can use an underscore instead of a space after the "dir-merge".
Matt
More information about the rsync
mailing list