• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

daily schedule

#1
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
 

RecoveryOne

ADSM.ORG Senior Member
#2
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.
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 18 20.0%
  • Keep using TSM for Spectrum Protect.

    Votes: 55 61.1%
  • Let's be formal and just say Spectrum Protect

    Votes: 10 11.1%
  • Other (please comement)

    Votes: 7 7.8%

Forum statistics

Threads
31,505
Messages
134,278
Members
21,590
Latest member
madebi
Top