bundles/backup-client: spread backups further apart

This commit is contained in:
Franzi 2022-01-04 15:34:53 +01:00
parent 95c04354ba
commit 245b2219ee
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -19,8 +19,10 @@ def cron(metadata):
return {
'cron': {
'backup': '{} 23 * * * root /usr/local/bin/generate-backup > /var/log/backup-client/backup.log 2>&1'.format(
# spread backups between 00:00 and 04:59 UTC
'backup': '{} {} * * * root /usr/local/bin/generate-backup > /var/log/backup-client/backup.log 2>&1'.format(
(node.magic_number % 60),
(node.magic_number % 4),
),
},
'icinga2_api': {