Missing exports were preventing borg to read secrets
This commit is contained in:
parent
a31631e01e
commit
a4c4285576
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue