Files
sqlite-backup-s3/scripts/entrypoint.sh

13 lines
285 B
Bash

#!/bin/sh
set +e
# Create crontab in a writable location and set proper permissions
echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /etc/crontabs/root
# Run initial backup
/scripts/backup.sh
# Start crond in foreground with debug output
exec crond -f -d 0