3
0
mirror of https://kolaente.dev/konrad/docker-db-backup.git synced 2026-01-10 03:00:08 +01:00

feat: replace interval with a proper cron schedule

This commit is contained in:
kolaente
2021-12-30 12:57:58 +01:00
parent 7b8e1d187c
commit 9cecce4f2d
5 changed files with 20 additions and 19 deletions

View File

@@ -46,12 +46,13 @@ Where all backup files will be stored.
Default: `/backups`
### `BACKUP_INTERVAL`
### `BACKUP_SCHEDULE`
The interval at which backups will happen. Must be a parsable string
as [time.Duration](https://pkg.go.dev/time#ParseDuration). Must be positive.
The cron schedule at which the backup job runs, using the common unix cron syntax.
Default: `3h`
Check out [crontab.dev](https://crontab.dev/) for a nice explanation of the schedule.
Default: `* */6 * * * *` (every 6 hours)
### `BACKUP_MAX`