From ee578dad3946b19a3d146ea2f18a0720919fcf94 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 17 Aug 2023 17:13:14 +0200 Subject: [PATCH] feat: log to /var/log/kopia-backup.log --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f167342..9903533 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ CRONTAB=/etc/cron.d/kopia-backup 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} crontab ${CRONTAB}