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:
parent
02c9d71114
commit
ae779ce6e5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user