exclude this file #notes#

Dave Dykstra dwd at bell-labs.com
Fri Jan 11 01:57:03 EST 2002


On Wed, Jan 09, 2002 at 10:34:23PM -0800, Harry Putnam wrote:
> 
> What is the necessary syntax to exclude a file named #notes# from an
> action?
> 
> I've tried these without success:
> 
> #*
> "#*"
> #notes#
> "#notes#"
> \#notes\#

The man page says lines beginning with # in an --exclude-from file are
ignored.  You could use --exclude "#from#" on the command line, or you could
do something that would remove the '#' from the first character in an
exclude-from file.  Quotes and backslashes are not recognized in the file.
You could try '*#notes#', or if the file is at your top level directory you
could use '/#notes#'.

- Dave Dykstra




More information about the rsync mailing list