Automatic BORG_REPO per hostname
This commit is contained in:
parent
1e7ff368f1
commit
1e475aebef
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue