From a6c089a1917ff1fd775f96b82ee1b5f8765521e4 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 15 Jun 2024 15:11:26 -0500 Subject: [PATCH] did away with the inotifyd nonsense --- README.md | 6 ++++++ docker-compose.yml | 2 +- resticprofile-schedule.sh | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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