fix: use /etc/environment
This commit is contained in:
parent
6da89c61fc
commit
59c6e28c2d
@ -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}"
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
kopia repository connect filesystem \
|
||||
--path /repository \
|
||||
--override-hostname ${KOPIA_HOSTNAME} \
|
||||
--override-username ${KOPIA_USERNAME}
|
||||
|
||||
kopia snapshot create /backup
|
||||
|
Reference in New Issue
Block a user