You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
328 B

#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
webdir="_site"
[[ -d $webdir ]] || { echo "no $webdir directory"; exit 1 }
echo -n "Uploading website"
rsync --progress\
--partial \
--delete \
--exclude '.git' \
-avHe ssh ${webdir}/ root@esy.fun:/var/www/her.esy.fun/
echo " [done]"