Automatic BORG_REPO per hostname

This commit is contained in:
Eric Renfro 2022-09-20 10:05:24 -04:00
parent 1e7ff368f1
commit 1e475aebef
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -1,4 +1,10 @@
export BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg-midgaard"
case "$(hostname -s)" in
midgaard) BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg-midgaard";;
loki) BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg-loki";;
ragnarok) BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg-ragnarok";;
Intelity-02110) BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg-worktop";;
*) BORG_REPO="ssh://psi-jack@mega.home.ld/volume1/homes/psi-jack/borg";;
esac
export BORG_REMOTE_PATH="/usr/local/bin/borg"
#export BORG_REPO=mega:/volume1/homes/psi-jack/borg