Guest User

Untitled

a guest
Jul 23rd, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # set some vars
  4. SERVER="username@myserver.com"
  5. SERVER_PATH="/my/dir/on/server/"
  6.  
  7. # upload everything except for the git-dir and this file!
  8. rsync -rav -e ssh --exclude='*.git' --exclude="deploy.sh" . $SERVER:$SERVER_PATH/
Add Comment
Please, Sign In to add comment