Exclude files and folder from `sync`

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#$?

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.