Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. exec{ 'primary-backup-job':
  2. command => '/path/primary-backup-script.py',
  3. require => File['/path/primary-backup-script.py'],
  4. refreshonly => true,
  5. }
  6.  
  7. # Schedule cron job only after primary backup is completed.
  8. cron{ schedule-secondary-backup:
  9. command => "/path/secondary-backup-script.py",
  10. require => Exec['primary-backup-job'],
  11. user => root,
  12. hour => 05,
  13. minute => 00,
  14. weekday => 1-5;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement