fix: use /etc/environment
This commit is contained in:
parent
6da89c61fc
commit
59c6e28c2d
2 changed files with 6 additions and 6 deletions
|
@ -2,12 +2,7 @@
|
||||||
|
|
||||||
CRONTAB=/etc/cron.d/kopia-backup
|
CRONTAB=/etc/cron.d/kopia-backup
|
||||||
|
|
||||||
echo "Opening kopia repository"
|
printenv > /etc/environment
|
||||||
|
|
||||||
kopia repository connect filesystem \
|
|
||||||
--path /repository \
|
|
||||||
--override-hostname ${KOPIA_HOSTNAME} \
|
|
||||||
--override-username ${KOPIA_USERNAME}
|
|
||||||
|
|
||||||
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
|
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
kopia repository connect filesystem \
|
||||||
|
--path /repository \
|
||||||
|
--override-hostname ${KOPIA_HOSTNAME} \
|
||||||
|
--override-username ${KOPIA_USERNAME}
|
||||||
|
|
||||||
kopia snapshot create /backup
|
kopia snapshot create /backup
|
||||||
|
|
Loading…
Reference in a new issue