feat: log to /var/log/kopia-backup.log
This commit is contained in:
parent
2b390f1915
commit
ee578dad39
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ CRONTAB=/etc/cron.d/kopia-backup
|
||||||
|
|
||||||
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
|
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
|
||||||
|
|
||||||
echo "${KOPIA_CRON_SCHEDULE} /run-backup.sh" > ${CRONTAB}
|
echo "${KOPIA_CRON_SCHEDULE} /run-backup.sh > /var/log/kopia-backup.log 2>&1" > ${CRONTAB}
|
||||||
chmod 0644 ${CRONTAB}
|
chmod 0644 ${CRONTAB}
|
||||||
crontab ${CRONTAB}
|
crontab ${CRONTAB}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue