Remove password from borg script

This commit is contained in:
flyingscorpio@arch-desktop 2020-10-18 22:46:25 +02:00
parent 22836f3210
commit b7634be0a5
3 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,8 @@ touch "$cache_file"
BORG_REPO=ssh://flyingscorpio@2px.info:22/~/"$(hostname)".borg
export BORG_REPO
export BORG_PASSPHRASE='ribosome66'
BORG_PASSPHRASE="$BORG_PASSPHRASE"
export BORG_PASSPHRASE
# some helpers and error handling:
info() { printf "\n%s %s\n\n" "$(date)" "$*" >&2; }

View file

@ -8,5 +8,5 @@ Target = *
[Action]
Description = Borg backup
When = PreTransaction
Exec = /home/flyingscorpio/SetupCockpit/borg_backup.sh
Exec = source /home/flyingscorpio/SetupCockpit/secrets && /home/flyingscorpio/SetupCockpit/borg_backup.sh
Depends = borg

View file

@ -1,3 +1,4 @@
# secrets - is sourced by some commands - this is a template
SETUP_COCKPIT_EMAIL=''
BORG_PASSPHRASE=''