Skip to content

Instantly share code, notes, and snippets.

@thomasjbradley
Last active October 13, 2015 17:18
Show Gist options
  • Save thomasjbradley/4229451 to your computer and use it in GitHub Desktop.
Save thomasjbradley/4229451 to your computer and use it in GitHub Desktop.
Simple deployment with rsync
#!/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
._*
.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