Skip to content

Instantly share code, notes, and snippets.

@dqian96
Created May 17, 2019 01:58
Show Gist options
  • Select an option

  • Save dqian96/987ad82c4a32670e1cddf6b3ed94fc95 to your computer and use it in GitHub Desktop.

Select an option

Save dqian96/987ad82c4a32670e1cddf6b3ed94fc95 to your computer and use it in GitHub Desktop.
rsync
# rsync current directory, keep `--delete` to delete on remote
alias run_rsync='rsync -azP --exclude ".*/" --exclude ".*" --exclude "tmp/" --delete `pwd` [email protected]:~'
run_rsync; fswatch -o . | while read f; do run_rsync; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment