#!/bin/sh set -e USER=root HOST=10.10.1.5 DIR=/srv/gabevenberg hugo --minify rsync -rvz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder exit 0