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:
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user