cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar Based Schedules - Same Date and Same Start Time - Other Schedules Still Run

RLeon
Level 6
   VIP   

Hi all.

It's been sooooo long.
Anyway, one of our clients has a NetBackup 8.0 environment running, but encountered the following issue.

Schedule type is calendar based. They have 3 schedules per policy:
1. Daily - Ticked All Dates in month - Start-End-Window 9:00PM-2AM - SLP-Daily
2. Weekly - Ticked Fridays only - Start-End-Window 9:00PM-2AM - SLP-Weekly
3. Monthly - Ticked 1st of each month - Start-End-Window 9:00PM-2AM - SLP-Monthly

The way I understand this priority system is, that the least frequent schedule wins whenever two or more schedules are due to run on the same day and with the same start time.
What actually ends up happening is that, on each Friday, Weekly would run first, but if the jobs complete before 2AM, the Daily schedule would also start its jobs. In a way this makes sense because anytime before 2AM still falls within Daily's window.

Similar things happen to Monthly schedules. On the 1st of every month, the Monthly schedule would run first, and if it finishes before 2AM, the Weekly would also start if it is a Friday. THEN, if it also finishes before 2AM, the Daily also starts next! 3 backups in 1 night, crazy.

Clearly, we don't want more than one schedules to run on the same night!
So I'm just reaching out here for your suggestions.
I could only think of two half-solutions atm:

  1. Shorten the Start-End-Window from 5 hours to something like 1-2 hour: 9:00PM-10:00PM for all schedules, so that the next schedule waiting to start would unlikely have any backup window left to actually start. (This is not ideal because the guesswork makes this not always 100% accurate, plus there is actually a need for longer backup windows)
  2. Give up the Calendar type and use the Frequency schedule type. (Not ideal either because you can't select the 1st of each month that uses a special Monthly SLP.)

Sooooo, any ideas on how to optimize this guys?
Thanks all!

RLeon

2 ACCEPTED SOLUTIONS

Accepted Solutions

Systems_Team
Level 6
   VIP   

Hi RLeon,

I think I have the answer for you, and it doesn't involve having to change the Start Windows, only the days you have selected.  We do something very similar to what you are trying to do, so here are our schedules showing the Include Days which is what you need to tweak (including screenshots):

  • Daily: Monday, Tuesday, Wednesday, Thursday, Saturday and Sunday (Note - NOT Friday)
  • Weekly: Every Friday except for the Last Friday of the month
  • Monthly: Last Friday of every month

DailyDaily

WeeklyWeekly

MonthlyMonthly

So, by doing this you have the daily/weekly/monthly backup running only on the day they they are supposed to, with no chance of two backups on the same day.  One other important thing to note is that we do an "Accelerator forced rescan" on the Monthly backup.  This is recommended in the doco.  It basically reset your CBT, and does a full re-read of all the data, not just skipping over what it already knows about - so it will make the Monthly backup run a bit longer but worth doing and the Monthly is the perfect time to do it.  This is on the Attributes tab as shown below:

Accelerator Force RescanAccelerator Force Rescan

Hope this helps,

Steve

View solution in original post

why don't you use the "Exclude" tab for selecting days when a backup policy should not run?

like for daily, exclude Fridays and month ends. for weekly, exclude month ends.

but here's the trick, if their month end is on month end (not 1st of every month), they could use the "Include" tab to specify month ends only to ensure month ends runs on month ends.

View solution in original post

6 REPLIES 6

RB-Infinitely
Level 4

Hi,

Yes, shorten the window are use specific days (mon, tue, wed, etc) instead of selecting everything for the daily schedule. Weekly and Monthly can remain the same.

Systems_Team
Level 6
   VIP   

Hi RLeon,

I think I have the answer for you, and it doesn't involve having to change the Start Windows, only the days you have selected.  We do something very similar to what you are trying to do, so here are our schedules showing the Include Days which is what you need to tweak (including screenshots):

  • Daily: Monday, Tuesday, Wednesday, Thursday, Saturday and Sunday (Note - NOT Friday)
  • Weekly: Every Friday except for the Last Friday of the month
  • Monthly: Last Friday of every month

DailyDaily

WeeklyWeekly

MonthlyMonthly

So, by doing this you have the daily/weekly/monthly backup running only on the day they they are supposed to, with no chance of two backups on the same day.  One other important thing to note is that we do an "Accelerator forced rescan" on the Monthly backup.  This is recommended in the doco.  It basically reset your CBT, and does a full re-read of all the data, not just skipping over what it already knows about - so it will make the Monthly backup run a bit longer but worth doing and the Monthly is the perfect time to do it.  This is on the Attributes tab as shown below:

Accelerator Force RescanAccelerator Force Rescan

Hope this helps,

Steve

RLeon
Level 6
   VIP   

Thank you both for your suggestions.

Systems_Team:
Your suggestion on unticking Fridays in the Daily schedule solves the problem between it and the Weekly schedule. (Why didn't I think of that?)
However, it does not solve the problem when the Monthly schedule is specified by DATE and not Day-of-the-week.
Therefore, your solution works in your use case because your Monthely schedule is using the Day-of-the-week method.

Our client specifically wants the 1st of every month to be the Monthly Schedule, regardless of which day of the week it is.
So your example does not 100% work in our case.
Any other suggestions?

why don't you use the "Exclude" tab for selecting days when a backup policy should not run?

like for daily, exclude Fridays and month ends. for weekly, exclude month ends.

but here's the trick, if their month end is on month end (not 1st of every month), they could use the "Include" tab to specify month ends only to ensure month ends runs on month ends.

RLeon
Level 6
   VIP   

HI rino19ny,

Thanks for your suggestion. The "exclude" method is a variant of same method that Systems_Team suggested. Essentially both methods give the same result.
However, for the Monthly schedule, since the client wants a specific date-of-the-month, and not day-of-the-week (such as "last Friday of the month"), both yours and Systems_Team's methods do not solve our problem.
I.e., sometimes 1st day is also a Friday, so it triggers both Monthly and Weekly schedules;
sometimes it isn't, so it triggers both Monthly and Daily schedules.

My brain is trapped in an infinite loop.

RLeon
Level 6
   VIP   

Hang on, what if I do this:

1. Daily - Ticked All days except Fridays - Start-End-Window 9:00PM-2AM - SLP-Daily - Exclude 1st of each month
2. Weekly - Ticked Fridays only - Start-End-Window 9:00PM-2AM - SLP-Weekly - Exclude 1st of each month
3. Monthly - Ticked 1st of each month - Start-End-Window 9:00PM-2AM - SLP-Monthly

This looks like it would work.
I need some peer review :)

EDIT:
I just realized what I described is what rino19ny said, but with Dates instead of Days-of-the-week.