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)


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


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