From a4c428557602c7051c154d7b872cef890da68ca8 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 31 Oct 2020 15:56:18 +0100 Subject: [PATCH] Missing exports were preventing borg to read secrets --- pacman_hooks/borg_backup.hook | 2 +- secrets.template | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pacman_hooks/borg_backup.hook b/pacman_hooks/borg_backup.hook index fcf0b74..5ece2ee 100644 --- a/pacman_hooks/borg_backup.hook +++ b/pacman_hooks/borg_backup.hook @@ -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 diff --git a/secrets.template b/secrets.template index 9432604..7bc2f16 100644 --- a/secrets.template +++ b/secrets.template @@ -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/