Skip to content

Instantly share code, notes, and snippets.

@yoanmalie
Created June 1, 2020 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoanmalie/6d0e52e518364be0e0c5c792f5a1e639 to your computer and use it in GitHub Desktop.
Save yoanmalie/6d0e52e518364be0e0c5c792f5a1e639 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Deploy through Rsync to the server
echo "Uploading files…"
rsync -avhP --delete --update --exclude 'site/accounts/.logins' --exclude 'site/cache/*' --exclude '.DS_Store' --exclude '.gitkeep' ~/Projets/portfolio/ user@host.com:~/portfolio
echo "Uploading done!"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment