Automatic BORG_REPO per hostname

master
Eric Renfro 3 months ago
parent 1e7ff368f1
commit 1e475aebef
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
  1. 8
      .local/dotfiles/environment/borg.zsh

@ -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

Loading…
Cancel
Save