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