bundles/backup-client: spread backups further apart
This commit is contained in:
parent
95c04354ba
commit
245b2219ee
1 changed files with 3 additions and 1 deletions
|
@ -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': {
|
||||
|
|
Loading…
Reference in a new issue