Skip to content

Instantly share code, notes, and snippets.

@pateketrueke
Created November 7, 2012 22:58
Show Gist options
  • Save pateketrueke/4035160 to your computer and use it in GitHub Desktop.
Save pateketrueke/4035160 to your computer and use it in GitHub Desktop.
Deploying with RSync (common)
#!/bin/sh
OPTIONS='-avlzC --progress --exclude-from exclude.txt --stats'
TRANSPORT='ssh -p 22'
CONNECTION='user@host.tld'
REMOTE_PATH='/var/www'
eval "rsync $OPTIONS -e '$TRANSPORT' . $CONNECTION:$REMOTE_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment