daily schedule

toneysamuel002

Active Newcomer
Joined
Feb 4, 2019
Messages
5
Reaction score
0
Points
0
I have to create daily and monthly schedule to backup a folder.

daily backup should run everyday except 1st of every month and monthly backup has to run on 1st of every month.

need help in how can i exclude the daily schedule from running on 1st of every month
 
What version of Spectrum Protect are you running?
If one of the more recent versions, you could use retention sets to take the backup from the first and keep it as long as you need. Quick video on them: https://www.youtube.com/watch?v=S7Fqay6uKpo. This is really handy!
Assuming you are only backing up this one specific folder incrementally.

If retention sets are not feasible, and you have a requirement to keep the 1st of the month for a longer term than your daily you will need to do a few a few additional steps.
The below is assuming we are able to do incremental forever and not actually having to use an archive.
  • Make sure you have a policy with proper policy sets defined to meet your retention needs
  • Setup a new dsm.opt file and schedule service for 1st of month node. For ease of example calling it 1st_of_month_node. Build your include statements to only backup said folder(s).
  • Define your monthly schedule as such: DEFINE SCHEDULE POLICY_DOMAIN-PD '1ST_OF_MONTH' TYPE=CLIENT ACTION=INCREMENTAL DESCRIPTION='1st of month 11am' STARTDATE=12/30/2019 STARTTIME=11:00 DAYOFWEEK=ANY SCHEDSTYLE=ENHANCED MONTH=ANY DAYOFMONTH=1 WEEKOFMONTH=ANY
  • Associate the the new 1st of month node with the newly defined schedule. DEFINE ASSOCIATION POLICY_DOMAIN-PD 1ST_OF_MONTH 1st_of_month_node
That should take care of the monthly.
Depending on how your incremental schedule is setup up, you may wish to build a new incremental schedule for this node or you could affect all nodes using said schedule.
For a new schedule:
  • Make sure you have a policy with proper policy sets defined to meet your retention needs for non 1st of the month
  • Setup a new dsm.opt file and schedule service for every day but the 1st. For ease going to call it normal_node
  • DEFINE SCHEDULE POLICY_DOMAIN-PD 'NO_1ST_Of_MO' TYPE=CLIENT ACTION=INCREMENTAL DESCRIPTION='daily without 1st of month' STARTDATE=12/30/2019 STARTTIME=11:00 DAYOFWEEK=ANY SCHEDSTYLE=ENHANCED MONTH=ANY DAYOFMONTH=2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 WEEKOFMONTH=ANY
  • Associate the the new normal_node with the newly defined schedule. DEFINE ASSOCIATION POLICY_DOMAIN-PD NO_1ST_Of_MO normal_node

The above should work. Going from memory here and haven't yet finished my coffee :)
Obviously there's a whole checklist of building policy sets to meet your needs and other items but the forms here and IBM's help documentation should point you in the right direction.

If any questions feel free to ask.
 
Back
Top