Skip to content
Discussion options

You must be logged in to vote

Set the begin time per job instead of through DEFAULT_. In 5.0.4 DEFAULT_BACKUP_BEGIN is never read, so every job falls back to +0 (start now) and then repeats every 1440 minutes from that moment:

      - DEFAULT_BACKUP_INTERVAL=1440
      - DB01_BACKUP_BEGIN=0300
      - DB02_BACKUP_BEGIN=0300

Or use a cron expression, which doesn't need the interval at all:

      - DB01_BACKUP_BEGIN=0 3 * * *
      - DB02_BACKUP_BEGIN=0 3 * * *

The cause is in container/rootfs/container/functions/10-dbbackup (line 621): the interval gets ${DEFAULT_BACKUP_INTERVAL} as fallback, but the begin value is hardcoded:

local begin="$(_dbbackup_getv "${inst}" BACKUP_BEGIN "+0")"

It only looks at DBxx_BACKUP_BEGIN …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DjoeC
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants