-
-
Save Davidnet/6049b9b06dc36d82aab5f18c8298913e 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