Add cronjobs for backup and restore scripts

This commit is contained in:
Patrik Holmqvist 2025-01-17 12:44:03 +01:00
parent c37d6addad
commit 3e9ab7e98f
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -55,6 +55,13 @@ class net::baas2_restoretest(
owner => 'root',
content => file('net/baas2_restoretest/baas2-check-restore-status')
}
sunet::scriptherder::cronjob { 'baas2-validate-backup-files':
cmd => '/opt/baas2/validate-backup-files',
minute => '5',
hour => '8'
ok_criteria => ['exit_status=0', 'max_age=48h'],
}
}
if $node_type == 'backupnode' {
@ -71,6 +78,13 @@ class net::baas2_restoretest(
owner => 'root',
content => file('net/baas2_restoretest/gen-backup-files')
}
sunet::scriptherder::cronjob { 'baas2-gen-backup-files':
cmd => '/opt/baas2/gen-backup-files',
minute => '25',
hour => '14'
ok_criteria => ['exit_status=0', 'max_age=48h'],
}
}
}