Add cronjobs for backup and restore scripts
This commit is contained in:
parent
c37d6addad
commit
3e9ab7e98f
1 changed files with 14 additions and 0 deletions
|
@ -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'],
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue