fix: use /etc/environment

This commit is contained in:
Michael Mandl 2023-08-17 17:36:27 +02:00
parent 6da89c61fc
commit 59c6e28c2d
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 6 additions and 6 deletions

View file

@ -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}"

View file

@ -1,3 +1,8 @@
#!/bin/sh
kopia repository connect filesystem \
--path /repository \
--override-hostname ${KOPIA_HOSTNAME} \
--override-username ${KOPIA_USERNAME}
kopia snapshot create /backup