This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
kopia/entrypoint.sh

13 lines
310 B
Bash
Executable File

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