#!/bin/bash # # Locally builds the site and deploys it to Uberspace using rsync # https://gohugo.io/hosting-and-deployment/deployment-with-rsync/ SRC=public # The host uberspace needs to be setup in ~/.ssh/config DST="uberspace:~/this.ven.uber.space" HID="music/inconvenient-ep/influenca/hidden" DFS="content/$HID/.ht*" DFD="$DST/$HID/" hugo --cleanDestinationDir && rsync -avz --delete $SRC/ $DST/ # Manually sync dot files for authentication rsync -avz $DFS $DFD