Exclude files and folder from `sync`

#1

I intend to exclude from synchonization / move all files extensions ".m ~", ".odt#" and folders ".git".

How to correct achieve this? Is --exclude using regular expression?

So. do I have to use --exclude \/\.git\/|\.m~$|\.odt#$?

#2

You can just use multiple excludes to keep it simple.

--exclude="**.git" --exclude="**.odt#" etc...

There are other ways to do this also in the docs.