Widen backup timer randomization to 4h to spread load across hosts
This commit is contained in:
parent
2db05c9bb6
commit
5fb5aeec0c
1 changed files with 2 additions and 1 deletions
3
setup.sh
3
setup.sh
|
|
@ -21,6 +21,7 @@ ENV_SAMPLE="${BACKUP_DIR}/backup.env.sample"
|
|||
SERVICE_UNIT="/etc/systemd/system/pbs-backup.service"
|
||||
TIMER_UNIT="/etc/systemd/system/pbs-backup.timer"
|
||||
BACKUP_TIME="02:00"
|
||||
RANDOMIZE_DELAY="4h"
|
||||
|
||||
# 1. Proxmox archive signing key
|
||||
wget "$KEYRING_URL" -O "$KEYRING"
|
||||
|
|
@ -96,7 +97,7 @@ Description=Daily Proxmox Backup
|
|||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* ${BACKUP_TIME}
|
||||
RandomizeDelaySec=1800
|
||||
RandomizeDelaySec=${RANDOMIZE_DELAY}
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue