diff --git a/README.md b/README.md index 5835757..c890deb 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,9 @@ Dry-run a backup ```shell docker compose exec backup resticprofile --dry-run backup ``` + +Check crontab entry in container + +```shell +docker compose exec backup cat /var/spool/cron/crontabs/root +``` diff --git a/docker-compose.yml b/docker-compose.yml index 3aeaa43..1a6575d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: entrypoint: '/bin/sh' command: - -c - - 'crond && resticprofile-schedule.sh && inotifyd resticprofile-schedule.sh /etc/resticprofile:w' + - 'resticprofile-schedule.sh && crond -f' env_file: - .env hostname: ${HOSTNAME} diff --git a/resticprofile-schedule.sh b/resticprofile-schedule.sh index 4ff1cfd..8182afc 100755 --- a/resticprofile-schedule.sh +++ b/resticprofile-schedule.sh @@ -2,7 +2,7 @@ set -e -resticprofile unschedule +resticprofile unschedule > /dev/null resticprofile schedule --all