From 59c6e28c2d708f744e5b520bb6f64218f4b90af2 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 17 Aug 2023 17:36:27 +0200 Subject: [PATCH] fix: use /etc/environment --- entrypoint.sh | 7 +------ run-backup.sh | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9fb6c4b..3ab50d9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,12 +2,7 @@ CRONTAB=/etc/cron.d/kopia-backup -echo "Opening kopia repository" - -kopia repository connect filesystem \ - --path /repository \ - --override-hostname ${KOPIA_HOSTNAME} \ - --override-username ${KOPIA_USERNAME} +printenv > /etc/environment echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}" diff --git a/run-backup.sh b/run-backup.sh index 6629efc..95c05c8 100755 --- a/run-backup.sh +++ b/run-backup.sh @@ -1,3 +1,8 @@ #!/bin/sh +kopia repository connect filesystem \ + --path /repository \ + --override-hostname ${KOPIA_HOSTNAME} \ + --override-username ${KOPIA_USERNAME} + kopia snapshot create /backup