12 lines
219 B
Bash
Executable File
12 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CRONTAB=/etc/cron.d/kopia-backup
|
|
|
|
echo "Running cron with schedule ${KOPIA_CRON_TIMES}"
|
|
|
|
echo "${KOPIA_CRON_TIMES} /run-backup.sh > /dev/stdout" > ${CRONTAB}
|
|
chmod 0644 ${CRONTAB}
|
|
crontab ${CRONTAB}
|
|
|
|
cron -f
|