Created
August 30, 2018 04:48
-
-
Save cgarciae/5500c652b4e2d4f08c38aa3441ebf184 to your computer and use it in GitHub Desktop.
rsync project to server
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 --exclude-from=.gitignore -avz -e ssh . $1 | |
while inotifywait -r -e modify,create,delete . ; do | |
rsync --exclude-from=.gitignore -avz --delete -e ssh . $1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment