--exclude patterns

Anthony Morton amorton at fastmail.fm
Thu Jan 31 04:30:00 GMT 2008

>> 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- 

Tony M.

More information about the rsync mailing list