Backups: Move to backup host
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-12-25 17:45:59 +01:00
parent e6aece0237
commit 75c04207b6
9 changed files with 574 additions and 695 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh
# Setting this, so the repo does not need to be given on the commandline:
PUSH_KEY={{ backup.pushkey }}
PUSH_KEY={{ pushkey }}
# See the section "Passphrase notes" for more infos.
export BORG_PASSPHRASE='{{ backup.password }}'
export BORG_REPO=ssh://{{ backup.remote.user }}@{{ backup.remote.url }}
export BORG_RSH='ssh -i /root/.ssh/storagebox'
export BORG_PASSPHRASE='{{ password }}'
export BORG_REPO='{{ repo }}'
export BORG_RSH='ssh -i /root/.ssh/borgbackup'
# some helpers and error handling:
info() { printf "\n%s %s\n\n" "$( date )" "$*" >&2; }

View File

@ -3,9 +3,9 @@
# Setting this, so the repo does not need to be given on the commandline:
# See the section "Passphrase notes" for more infos.
export BORG_PASSPHRASE='{{ backup.password }}'
export BORG_REPO=ssh://{{ backup.remote.user }}@{{ backup.remote.url }}
export BORG_RSH='ssh -i /root/.ssh/storagebox'
export BORG_PASSPHRASE='{{ password }}'
export BORG_REPO='{{ repo }}'
export BORG_RSH='ssh -i /root/.ssh/borgbackup'
{% if provision.from_backup.name is defined %}
RESTORE_FROM={{ provision.from_backup.name }}