Last active
October 13, 2015 17:18
-
-
Save thomasjbradley/4229451 to your computer and use it in GitHub Desktop.
Simple deployment with rsync
This file contains 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
#!/usr/bin/env bash | |
rsync -e ssh -a -r --delete --delete-excluded --progress --compress --chmod=u=rwx,go=rx --exclude-from 'rsync-exclude.txt' ./ ssh-server-alias:/path/on/remote/server |
This file contains 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
._* | |
.DS_Store | |
.git* | |
deploy.sh | |
build.sh | |
README.md | |
rsync-exclude.txt | |
*.sublime-project | |
*.sublime-workspace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment