Technical Support Services Blog
Discover the latest trends in technology, and the technical issues customers are overcoming with the aid of HP Technology Services.

DPTIPS: First Saturday schedule hack for HP Data Protector

There are a good many ways you can schedule a backup with HP Data Protector.  Whether it's a daily incremental or a weekly full, we have you covered.  But what about those special cases where regulatory requirements or other factors dictate that you execute a backup on the first Saturday of each month?  Try as you may, there is no option to be found in DP's GUI to enable scheduling such a regimen without manually going to the first Saturday of each month and placing an entry there.  How far out should you go?  A year?  Two years?  And then how shall you remember to go schedule more before those run out?

 

Clearly, DP has opportunities for improvement in the realm of scheduling.  But I would rather light a candle than curse your darkness.  Though I cannot share timelines or versions, I've been assured by the highest authorities within product development that measurable improvement to the scheduler is in the works.  While that may give us all a warm fuzzy, it doesn't do diddly for our immediate needs.  But don't dismay, Mr_T is here to help!

 

First a quick reference on the location of filesystem backup schedule files:

 

Windows 2003 and earlier
C:\Program Files\OmniBack\Config\Server\Schedules

Windows 2008 and later
C:\ProgramData\OmniBack\Config\Server\Schedules

Unix and Linux
/etc/opt/omni/server/schedules

  

In the schedules directory are simple ASCII files with names that correspond to scheduled backup specifications.  You can easy edit these files with Notepad or vi.  Be sure to close then reopen your DP GUI after manually editing a schedule file to eliminate the possibility of seeing or applying cached information.

 

It is at this point that I need to give full credit to to Paul Carapetis who is an HP Software Pre-Sales Consultant in the South Pacific region.  Paul worked in conjunction with one of his customers to formulate this brilliantly simple solution.

 

First, create any old schedule for the job such as a full backup each Saturday.

 

# pwd
/etc/opt/omni/server/schedules

# cat Test

-full
-every
        -day Sat
        -at 17:00

  

Now edit the schedule file and replace its contents with the following.

 

-full
        -day 1 2 3 4 5 6 7
        -at 17:00

-full
-exclude
        -day Mon Tue Wed Thu Fri Sun
        -at 17:00

 

This logic says literally, "Start the backup at 17:00 on the first seven days of each month UNLESS the weekday is Monday, Tuesday, Wednesday, Thursday, Friday, or Sunday."  Note the conspicuous absence of Saturday in that exclude list.  Also, the mode (-full) and time (17:00) must agree throughout the file to make this magic work.  Adjust the times to the desired start time of your backup.  As Paul so aptly stated to me, "It will only run on the first Saturday of the month...until weeks get 8 days."

 

Paul's solution is eloquent both in its brevity and effectiveness.  What you see below is my attempt to achieve similar functionality with the difference being that we're aiming for the last Sunday of each month.  Having a variable number of days in each month added a little complexity.  Leap years really threw a wrench in the works.

 

-full
-every
        -day 25 26 27 28 29 30 31 -month May Jul Aug Oct Dec Jan Mar
        -at 21:00

-full
-every
        -day 24 25 26 27 28 29 30 -month Jun Sep Nov Apr
        -at 21:00

-full
-every
        -day 22 23 24 25 26 27 28 -month Feb
        -at 21:00

-full
-exclude
        -day Mon Tue Wed Thu Fri Sat
        -at 21:00

  

This actually works with 100% accuracy for the next 20 years.  It falls apart in 2032 which is a leap year that has Sundays on both the 22nd and the 29th.  Hopefully, that scheduler improvement I mentioned earlier will materialize within the next 20 years making this entire "hack" a moot point.  :smileywink:

 

Don't forget to close your GUI after making these manual "behind the scenes" changes.  Reopening the GUI clears the cache and forces it to re-parse the contents of datalists and schedules as you browse them anew.

 

Have you discovered any cool schedule file hacks?  Is there a schedule scenario that isn't addressed by existing GUI functionality or the first/last examples in this article?  Please leave a comment and let me know!

 

 

Labels: Data Protector
Comments
murphyranch | ‎05-25-2011 04:03 PM

Again thanks Jim this is good stuff.

Uli Wallscheid(anon) | ‎03-23-2012 08:06 AM

HI,

in the changes to the schedule (upper example)  file don't you need a "-every" in the 2nd line?

Just tested with "-every" and it worked fine. Is it optional?

 

Kind regards,

UliW@IM

Mr_T | ‎03-24-2012 03:44 AM

Hi Uli,

 

I'd say it's optional.  I just pasted the "non-every" version into a schedule file, and it still parses out correctly when you look at it through the GUI.  After adding the -every on the 2nd line and refreshing the GUI, it still parses correctly and creates the desired schedule.

 

Thanks,

Jim

Dzinks(anon) | ‎08-16-2012 10:14 AM

Good job, but i would like to do someting else. I would like to change somthing in my schedule. 

Acctualy at Mon-Thursday i have inc1, at saturday full. Every first friday of month i put tapes for month backup. 

 

I've create diffirent pool with permanent protection and change schedule file of it to make backup  every first saturday. 

 

I would like to change reguar schedule file to exclude first saturday of the month. How can i do that?

 

Of coure i could do it manual via GUI, but do it for 2 and more years ...... :manmad:

Seetha Ram Battula(anon) | ‎02-26-2013 08:51 AM

I've installed DP 6.2 and created some backup specifications. Schedules are not running automatically. I've updated the licenses as well.

 

I'm new to Data Protector. 

Mr_T | ‎02-28-2013 05:11 AM

There are numerous variables to address.  Your best bet is to open a call with the HP Response Center using your Data Protector software support SAID.

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the community guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
About the Author
Mr_T? Yes, but in name only. No mohawk or gold chains. In real life I'm Jim Turner, a Master Technologist with HP's Integration and Techn...
About the Author(s)
  • I graduated in Software Engineering. Joined HP family five years ago, I deliver Insight Remote Support technical consulting for HP customers, in North America, Canada and Latin America. Assist setting up, installing and configuring the solution in customers' IT environments.
  • I am an identical twin. My brother’s name is Greg Tinker and we have been extremely fortunate working similar careers within HP, known to our HP colleagues and many of our customers as "The Tinkers". Our job is to be the technical lead on major business operational outages with millions of Dollars/Euros hanging in the balance. We both have a complete background in architectural, Infrastructure and application environments from both the proactive and reactive side of HP Enterprise Service (HP ES), and HP Enterprise Business (HP EB).
  • I am an identical twin. My brother’s name is Chris Tinker and we have been extremely fortunate working similar careers within HP, known to our HP colleagues and many of our customers as "The Tinkers". Our job is to be the technical lead on major business operational outages with millions of Dollars/Euros hanging in the balance. We both have a complete background in architectural, Infrastructure and application environments from both the proactive and reactive side of HP Enterprise Service (HP ES), and HP Enterprise Business (HP EB). We have always attended the same schools, studied the same material (big surprise, as we are identical twins), and have always worked as a close team and strive to demonstrate our teaming ability’s to others. We each have more than 11 years experience supporting mission-critical enterprise customers on a broad range of technologies. We’ve both won the HP MVP award multiple times as well as coauthored books, programs, and whitepapers in our spare time.
  • More than 25 years in the IT industry, managing ITSM, service development and delivery projects in Technology Services. Specialized in end2end support for ISV based business solutions. Certified ITIL and project management expert.
  • Eduardo Zepeda, WW TS Social Media Program Manager & Internal Communications for WW Technology Services Blogging on behalf of HP Technology Services (TS_Guest)
  • I have been with HP for 13 years, always in Services - first as a Services Channel Sales rep, then a Channel Services Segment Manager, and now, in WW Technology Services Marketing. These may be my formal job titles, but I'm really a Cheerleader for HP Services! I feel that HP has great services, exceptional Technical Experts and Delivery teams, and so many cool things are going on at HP Services. So, stay tuned...
  • Mr_T? Yes, but in name only. No mohawk or gold chains. In real life I'm Jim Turner, a Master Technologist with HP's Integration and Technical Services team. I leverage my 27 years of system, storage, and networking experience to ensure optimal performance with Data Protector and StoreOnce technologies. Many times the source of a problem is not where it appears to be. A broader view of the landscape and a deeper knowledge of system internals are frequently required, and that's precisely what I deliver.
  • MrCollaboration (aka Jim Evans) is an HP Global Services Alliance Manager. He has worked in the IT industry for more than 30 years, 22 of which were spent with Digital Equipment Corporation, Compaq and HP. He works with many third party vendors and partners to develop processes to facilitate excellent support and service for mutual customers. Jim is also HP’s representative to the Technical Support Alliance Network (TSANet).
  • I've been working in Customer Service for over 20 years. During my career I've provided support services for Languages, Programming Libraries and Operating Systems. During the last 10 years I've provide support for Linux and more recently VMware. My current role is as a Technical Account Manager working in the HP Custom Mission Critical Services Industry Standard Operating Systems team. I provide both reactive and proactive operating system support for proLiant servers and blades. Our services in the Custom teams are built on statement of work contracts for large HP customers who need a customized mission critical support offering.
  • I like to listen as much as I like to talk. Why? My 25+ years in the technology industry has taught me that the key to delivering value to customers is to understand what they value in the first place! I developed this passion for customers and consultative selling during my 12 years with Accenture, and I have continued to approach customers in a consultative way during my 12+ year tenure with HP. I also have a passion for HP given my knowledge of our Product and Service Portfolio and the differentiators we possess that position us as a leader in the areas our customers are telling us they want to go. Converged Infrastructure, Converged Cloud, Big Data – and the associated Service and Support implications – all such exciting technology trends where our success will hinge upon our ability to differentiate ourselves versus others in the areas that matter most to our customers. Right up my alley, and I am proud to be part of the great HP team where I know we have the best solutions in the industry!
  • Tom Clement has over 30 years experience in the areas of adult learning, secondary education, and leadership development. During this time Tom has been a consistent champion of “non-traditional” training delivery methods, including blended learning, virtual delivery (self paced and instructor led), the use of training games and simulations, and experiential learning. Tom has spent the past 25 years of his career at Hewlett Packard, focused most recently on HP’s global Virtualization, Cloud, and Converged Infrastructure customer training programs. Tom manages the strategic direction and overall performance of these training programs, ensuring these worldwide programs help HP’s customers capitalize on the business opportunities made available by IT advancements in each of these subject areas. Tom and his global teammates utilize best in class instructors, course content and supporting equipment infrastructure to deliver these training programs to HP’s customers. The team prides itself on providing the Virtualization, Cloud, and Converged Infrastructure content customers need when and where they need it, anywhere in the world. Tom is based in the Washington, DC suburbs and can be reached at tom.clement@hp.com.


Follow Us
Top Kudoed Posts