Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Last active July 9, 2022 10:25
Show Gist options
  • Save wonderbeyond/33e4ea5508b009f2861e4d2133748342 to your computer and use it in GitHub Desktop.
Save wonderbeyond/33e4ea5508b009f2861e4d2133748342 to your computer and use it in GitHub Desktop.
Common rsync's "--exclude" option setting

Use below snippet as rsync's option:

--exclude={'.*.sw[a-p]','*.pyc',__pycache__,.tox,.cache,tmp,.venv,node_modules,.git,dist,build}

Note the Bash brace expansion is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment