Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec{ 'primary-backup-job':
- command => '/path/primary-backup-script.py',
- require => File['/path/primary-backup-script.py'],
- refreshonly => true,
- }
- # Schedule cron job only after primary backup is completed.
- cron{ schedule-secondary-backup:
- command => "/path/secondary-backup-script.py",
- require => Exec['primary-backup-job'],
- user => root,
- hour => 05,
- minute => 00,
- weekday => 1-5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement