Skip to content

Instantly share code, notes, and snippets.

@gabrieldernbach
Last active May 6, 2021 15:57
Show Gist options
  • Save gabrieldernbach/049048daf8bc2bbde20f564fab1bdbaf to your computer and use it in GitHub Desktop.
Save gabrieldernbach/049048daf8bc2bbde20f564fab1bdbaf to your computer and use it in GitHub Desktop.
sync local folder with remote
fswatch ~/repo/ -o | xargs -I {} rsync -avzhe ssh ~/repo/ server:/home/user/repo/ --delete --exclude "venv/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment