Missing exports were preventing borg to read secrets

This commit is contained in:
flyingscorpio@arch-desktop 2020-10-31 15:56:18 +01:00
parent a31631e01e
commit a4c4285576
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -4,11 +4,11 @@ SETUP_COCKPIT_EMAIL='john@doe.com'
GIT_EMAIL='john@doe.com'
SSH_REPO='user@ho.st'
export SSH_REPO='user@ho.st'
BORG_PASSPHRASE='passphrase'
export BORG_PASSPHRASE='passphrase'
BORG_EXCLUDES="\
export BORG_EXCLUDES="\
/path/to/exlude/*
/another/*/path/to/exlude/*
/yet/another/*/one/