Forum Discussion

thappu's avatar
thappu
Level 3
16 years ago

Query : Priority setting in calender schedule

Hi , Is it possible to have a priority setting in NBU 6.5 ,in the calender schedule  , so that only monthly schedule backup runs , even though both weekly & monthly are scheduled in the same policy for the same day ?
Message Edited by thappu on 07-23-2008 11:16 PM
  • The following has always worked for us in v5.1 MPx and v6.5.x....

     

    Schedule Name    Calendar   Retention   Run Days                                 Start Time    End Time

    WEEKLY_FULL      Yes         1 month     1st, 2nd, 3rd and 4th Saturdays  10:00am       Monday 08:00am

    MONTHLY_FULL    Yes         1 year       Last Saturday                           10:00am      Monday 08:00am

     

    We never normally have to use any include or exclude dates at all.

     

    The trick is to get the start and end times of the run Window the same (to the minute).

     

    When it comes to months with only four Saturdays, the job scheduler sees two possible "full" schedules with exactly the same run window, and so chooses the monthly schedule because it has the longest retention.

     

    And, a nice (or bad) side affect, is that when a new client is added to a schedule or policy for the first time, NetBackup sees that it doesn't have a backup with the longest retention, and so runs the monthly schedule, thus ensuring that the first full backup is retained for a year - BUT if you're rejigging lots of clients across policies before the last Saturday, then this can mean that lots of clients will run monthly backups twice in a month, which is not good if you have limited resources - and in this case I would recommend applying specific exclude dates on the MONTHLY_FULL schedule (but of course not the last Saturday).

8 Replies

  • Explaining further on this query ,what i need to achive is as below . Calender schedule as below is done

    1st 4 saturdays of the month -- Weekly full backup.

    last saturday of month -- Monthly full backup

     

    The issue is seen for the months that has a total of 4 saturdays . In this case both weekly & monthly is run for the schedule .

    But I need  to have priority for monthly schedule and run only the monthly

     

    As seen from a link in the forum --> NOTES: If more than one schedule for this class is due for a client, the backups from the schedule that is backed up least often are the ones added. --> Is this true for NBU 6.5 ?

     

    Is this possible to achive this without including any exclude  list in the schedule ?

  • when using frequency-based schedules, NetBackup gives priority to the least frequent schedule.  Frequency based schedule come with their own issues though.

     

    For calendar-based schedules, NetBackup does not prioritise the backups allowing the monthly to take precedence when there is a conflicting "Friday" in that particular month and what you land up with is a random selection of either the weekly or monthly schedules executing (sometimes duplicates).  You will need to set up exclusions for each weekly schedule to exclude the last "Friday" over every month.

     

    I had to set up an Excel formula that calculates each last "Friday" and builds the command-line to apply this to each policy and set up exclusion 'till the end of 2014.

  • Thanks Dion .. A samll confirmation that this was the behavior in all the NBU versions from 5.0 rt ?
  • Hi Dion , Whats the command line to apply to each policy ? Would it be possible to change the same for all policies in a single command ?
  • Hi

     

    The command it is bpplschedrep MDR_ALL_STD WEEKLY_FULL -excl 05/30/2008 (bpplschedrep <POLICY> <SCHEDULE> -excl <DATE>).  The problem is that you have to specify each individual date, schedule and policy so you need to run a single line for each date date you want to exclude for each policy.

     

    I had to create an excel formula which calculates the last Friday of the month and then builds each command.  Once I've got the list of commands, I just add it to a batch file and run all of them on the master server.

     

    Cheers

  • The following has always worked for us in v5.1 MPx and v6.5.x....

     

    Schedule Name    Calendar   Retention   Run Days                                 Start Time    End Time

    WEEKLY_FULL      Yes         1 month     1st, 2nd, 3rd and 4th Saturdays  10:00am       Monday 08:00am

    MONTHLY_FULL    Yes         1 year       Last Saturday                           10:00am      Monday 08:00am

     

    We never normally have to use any include or exclude dates at all.

     

    The trick is to get the start and end times of the run Window the same (to the minute).

     

    When it comes to months with only four Saturdays, the job scheduler sees two possible "full" schedules with exactly the same run window, and so chooses the monthly schedule because it has the longest retention.

     

    And, a nice (or bad) side affect, is that when a new client is added to a schedule or policy for the first time, NetBackup sees that it doesn't have a backup with the longest retention, and so runs the monthly schedule, thus ensuring that the first full backup is retained for a year - BUT if you're rejigging lots of clients across policies before the last Saturday, then this can mean that lots of clients will run monthly backups twice in a month, which is not good if you have limited resources - and in this case I would recommend applying specific exclude dates on the MONTHLY_FULL schedule (but of course not the last Saturday).

  • I had that setup and was in contact with Symantec for a couple of months (due to the error on popping up once on those months) and their final response was to add exclusions.  I tried copying policies to new ones, recreating new schedules from scratch, scheduling the weeklies 5 minutes after the monthlies and also recreating new policies from scratch.  Their final response was that the precedence was only give to the least scheduled schedule when it was frequency-based schedules.

     

    So if you don't come right with the schedule, you will need to use exclusions :smileysad:

  • Thanks both .. It looks like we need to add the exclusion list as we tried the schedules with exactly same backup window.. Only change was tht the retention was not 1 yr ,but only 6 months . Anyways greater retention than weekly ,as weekly was given only 1 mnth.

    but again its seen that both the full backups are getting scheduled ..