Last active
March 29, 2020 05:58
-
-
Save miguelmota/53d73118da38fe02a1b830517b018948 to your computer and use it in GitHub Desktop.
rsync upload (deploy) static website example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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