Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active March 29, 2020 05:58
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 miguelmota/53d73118da38fe02a1b830517b018948 to your computer and use it in GitHub Desktop.
Save miguelmota/53d73118da38fe02a1b830517b018948 to your computer and use it in GitHub Desktop.
rsync upload (deploy) static website example
#!/bin/bash
hugo
rsync -avuz public/ --chmod=ugo=rwX root@example.com:/var/www/example/_site
# setting a custom idenity file example
rsync -avuz public/ --chmod=ugo=rwX --rsh="ssh -i ~/.ssh/id_rsa" root@example.com:/var/www/example/_site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment