1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-28 01:48:14 +03:00

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.
This commit is contained in:
jmqm 2021-05-25 21:10:41 -05:00 committed by GitHub
parent 02c9d71114
commit ae779ce6e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ RUN apk add --no-cache \
zip \ zip \
tzdata tzdata
ENV CRON_TIME "0 5 * * *" ENV CRON_TIME "* */12 * * *"
ENV UID 100 ENV UID 100
ENV GID 100 ENV GID 100
ENV CRONFILE /etc/crontabs/root ENV CRONFILE /etc/crontabs/root

View File

@ -24,7 +24,7 @@ services:
- "/etc/localtime:/etc/localtime:ro" # Container uses date from host. - "/etc/localtime:/etc/localtime:ro" # Container uses date from host.
environment: environment:
- DELETE_AFTER=30 #optional - DELETE_AFTER=30 #optional
- CRON_TIME=* */4 * * * - CRON_TIME=* */24 * * * # Runs every 24 hours.
- UID=1024 - UID=1024
- GID=100 - GID=100
``` ```
@ -35,7 +35,7 @@ services:
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| UID ⭐| User ID to run the cron job as. | | UID ⭐| User ID to run the cron job as. |
| GID ⭐| Group 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)_ | | DELETE_AFTER 👍| Delete backups _X_ days old. _(unsupported at the moment)_ |
#### Optional #### Optional