From ae779ce6e58b2da1c12b6acfd17896813a1f1852 Mon Sep 17 00:00:00 2001 From: jmqm Date: Tue, 25 May 2021 21:10:41 -0500 Subject: [PATCH] Change execution schedule (#5) **README** - Changed `CRON_TIME` in `docker-compose`. - Added info on when the script runs. **Dockerfile** - Changed execution schedule from 5am everyday to every 12 hours. --- Dockerfile | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c032b5..d28b7bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apk add --no-cache \ zip \ tzdata -ENV CRON_TIME "0 5 * * *" +ENV CRON_TIME "* */12 * * *" ENV UID 100 ENV GID 100 ENV CRONFILE /etc/crontabs/root diff --git a/README.md b/README.md index 842ff21..d0fa6aa 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ services: - "/etc/localtime:/etc/localtime:ro" # Container uses date from host. environment: - DELETE_AFTER=30 #optional - - CRON_TIME=* */4 * * * + - CRON_TIME=* */24 * * * # Runs every 24 hours. - UID=1024 - GID=100 ``` @@ -35,7 +35,7 @@ services: | -------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | UID ⭐| User ID to run the cron job as. | | GID ⭐| Group ID to run the cron job as. | -| CRON_TIME 👍| When to run. Info [here](https://www.ibm.com/docs/en/db2oc?topic=task-unix-cron-format) and generator [here](https://crontab.guru/) | +| CRON_TIME 👍| When to run (default is every 12 hours). Info [here](https://www.ibm.com/docs/en/db2oc?topic=task-unix-cron-format) and editor [here](https://crontab.guru/). | | DELETE_AFTER 👍| Delete backups _X_ days old. _(unsupported at the moment)_ | #### Optional