Skip to content

Instantly share code, notes, and snippets.

@cgarciae
Created August 30, 2018 04:48
Show Gist options
  • Save cgarciae/5500c652b4e2d4f08c38aa3441ebf184 to your computer and use it in GitHub Desktop.
Save cgarciae/5500c652b4e2d4f08c38aa3441ebf184 to your computer and use it in GitHub Desktop.
rsync project to server
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