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