Schedule job
I am preparing a write a script for system schedule backup job , now our backup cycle is quite complicate eg. the backup job devides daily , weekly , bi-weekly , monthly , bi-monthly , yearly , some backup job run at weekly or bi-weekly , some run at monthly ( 28th , 29th , 30th or 31th , depends the month ) , some do not run at holiday , some run at yearly only , there are different backup job that run on different day ( some are full backup and some are incremental backup ) , so the script need to handle different condition .
To simplify the schedule , I have a thinking if I have a year plan , so that I can assign a backup job to each day , as below
Date Do backup job
=== ==========
2009-1-1 job1
2009-1-2 job2
2009-1-3 job3
2009-1-4 job1
2009-1-5 job2
2009-1-6 job4
2009-1-7 job1
2009-1-8 job3
" "
As above , I could assign different backup job by one time , so that I don't need to write a intelligent script to handle different condition , is it possible ? thx
|