I'd like to rsync a directory that contains a Python 3 app on my server.
The directory has files I'm interested in: the files that end with .py
And there are the files I'd like to be ignored (these are the files that are inside a
__pycache__ directory). (note: there could be
__pycache__ directories in any subdirectory of my project). I'd like these
__pycache__ directories to be ignored, wherever they appear).
I thought there should be an easy way to do this but couldn't find it. The --filter option appears to be undocumented and the --exclude option doesn't work as described in the rsync help.