#!/bin/bash # Upload des Previews. Vorbedingung: in hugo.toml muss baseURL = "https://tempelgold.kollegen.uber.space/preview" USER=kollegen HOST=despina.uberspace.de # the directory where your web site files should go DIR=/home/kollegen/tempelgold.kollegen.uber.space/preview hugo && rsync -avz public/ ${USER}@${HOST}:${DIR} exit 0