Created
May 17, 2019 01:58
-
-
Save dqian96/987ad82c4a32670e1cddf6b3ed94fc95 to your computer and use it in GitHub Desktop.
rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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