kopia/entrypoint.sh

12 lines
219 B
Bash
Raw Permalink Normal View History

2023-08-17 15:00:22 +00:00
#!/bin/sh
2023-08-17 08:35:51 +00:00
2023-08-17 15:00:22 +00:00
CRONTAB=/etc/cron.d/kopia-backup
2023-08-17 08:47:34 +00:00
2023-08-17 15:00:22 +00:00
echo "Running cron with schedule ${KOPIA_CRON_TIMES}"
2023-08-17 08:47:34 +00:00
2023-08-17 15:00:22 +00:00
echo "${KOPIA_CRON_TIMES} /run-backup.sh > /dev/stdout" > ${CRONTAB}
chmod 0644 ${CRONTAB}
crontab ${CRONTAB}
cron -f