#!/bin/sh
CRONTAB=/etc/cron.d/kopia-backup
echo "Running cron with schedule ${KOPIA_CRON_SCHEDULE}"
echo "${KOPIA_CRON_SCHEDULE} /run-backup.sh" > ${CRONTAB}
chmod 0644 ${CRONTAB}
crontab ${CRONTAB}
cron -f