2010-06-20

rsync / grsync and exclude files

You'd think that these tools would be straightforward to use. Took me over 30 minutes to get grsync to work correctly for excluding some files from source.

This is the syntax you need (you can add this to "additional options" in grsync)

--exclude-from=

In the exclude file, you need patterns in the order:

*.exe
*.htm

(they don't work without the leading asterisk. go figure)