Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # set some vars
- SERVER="username@myserver.com"
- SERVER_PATH="/my/dir/on/server/"
- # upload everything except for the git-dir and this file!
- rsync -rav -e ssh --exclude='*.git' --exclude="deploy.sh" . $SERVER:$SERVER_PATH/
Add Comment
Please, Sign In to add comment