Copy to tape how to differentiate on month/weekly scheduele

Everything about backing up to tape

Copy to tape how to differentiate on month/weekly scheduele

Veeam Logoby athome » Sun Oct 27, 2013 8:21 pm

Hi!

With the introduction of tape support in v7. I would like to run copy to tape each sunday.

The first sunday in the month it should copy to an monthly pool, while on sundays for the rest of the month, it should copy to another pool.

How do I configure this? there is no possiblibity to use exclude dates.

Its seems to me that either way I configure it.. it will one week run both of the jobs.

A
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby v.Eremin » Mon Oct 28, 2013 7:44 am

Hi, Anders. From my perspective, two jobs (monthly, weekly) pointed to different media-pools should do the trick. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby athome » Mon Oct 28, 2013 8:01 am

But still, whether I choose the first or last Sunday of month backup, I will end up with the job goes double one Sunday per month.
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby v.Eremin » Mon Oct 28, 2013 9:25 am

Then, you can write a simple PS script that will enable/disable a given tape job and schedule this script (Task Scheduler) to run on first Sunday only.

Disable:

Code: Select all
asnp VeeamPSSNapin
$TapeJob = Get-VBRTapeJob -name "Name of tape job"
$TapeJob.DisableScheduler()


Enable:

Code: Select all
asnp VeeamPSSNapin
$TapeJob = Get-VBRTapeJob -name "Name of tape job"
$TapeJob.EnableScheduler()


Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby Dima P. » Mon Oct 28, 2013 9:36 am

Anders,

I could also suggest changing tape retention on both media pools - one as a shot term, another as a long term. For example: 1 year for tapes with last Sunday of month backup and 1 month weekly backup tapes. Weekly tapes will be overwritten each month so you would keep only last Sunday backups for a year.
Dima P.
Veeam Software
 
Posts: 6231
Liked: 439 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby athome » Mon Oct 28, 2013 9:46 am

Hi!

Thanks for swift replies from both of you. Both could be workarounds. And we will consider implementing this.

Veeam Backup & Replication is really getting a better and better backupsoftware.. but to compete against Netbackup, Networker and the larger and more established competitors.. the scheduler is one thing that can have its improvements.. maybe the option to introduce policies is the way to go?
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby Dima P. » Mon Oct 28, 2013 10:16 am

Anders,

Thank you for the kind words. I am not sure that this would be polices, but tape functionality would be definitely improved in the upcoming versions.
Dima P.
Veeam Software
 
Posts: 6231
Liked: 439 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby nunciate » Mon Nov 04, 2013 10:41 pm

Here is what I did with my setup. I did this because I have 4 tape drives and want to utilize them all at the same time if possible. Since you can only run 1 job at a time per media pool and thus use only 1 tape drive at a time per media pool I setup my environment like this.
Created 4 Weekly Media pools set retention as 1 Month. Set create new Media set at 6:00am only on Fridays. My weekly backups start to tape start on Friday morning and go through Saturday afternoon usually so I want all tapes to use the same media set over that time period.

Created 4 Daily Media pool set retention to 1 Week. Set create new Media set at 6:00am Tuesday-Friday. My dailys incrementals run every night and sometimes on Friday nights depending on if the full ran early in the day on Friday. This keeps my incrementals for 1 week. If they happen to run on Friday night the same tape/media set is used on the Monday night incremental. Saves tapes.

Manually load balance/schedule all of my jobs across the multiple media pools. Had to check start/end times to determine best mix so that I had less idle time on each drive. daily's run quick so no big deal there but weeklies take a while so that is why I load balance the jobs.

Now for monthly and yearly backups.
Created 1 Monthly Pool with a retention of 3 years and 1 yearly with Never Overwrite. Did not create new media set on both of these as it doesn't matter because it will use the media set created during the weekly backups.

So on the first Friday of every month I let my backups run over the weekend. When I come in on Monday I move the weekly those backup tapes to my Monthly pool. Usually about 10 tapes. I then do a catalog tape job on each one. takes about an hour. That gets my data back into the catalog. Then I export the tapes and send them offsite. Same for yearly tapes.

I leave my weekly and daily tapes where they are and let them expire normally. This has been the easiest way to manage my tapes that I have found so far. If someone has some other way that is less work I would love to hear about it. Hopeing they produce a patch that will allow for monthly and yearly retentions as well as the ability to run multiple jobs on a single media pool.
nunciate
Expert
 
Posts: 136
Liked: 22 times
Joined: Tue May 21, 2013 9:08 pm
Full Name: Alan Wells

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby athome » Tue Apr 14, 2015 12:02 pm

Dima P. wrote:Anders,

Thank you for the kind words. I am not sure that this would be polices, but tape functionality would be definitely improved in the upcoming versions.


Any update on how this works in V8? we have a quite large environment with StoreOnce so creating virtual fullbackup to tape is not an option. I see that in the scheduler you have the option with ie. first second saturday pr month.. but with no option to exclude.

A
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby v.Eremin » Tue Apr 14, 2015 12:16 pm

Just a quick question - do you want this type of schedule to have GFS on tapes? Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby athome » Tue Apr 14, 2015 12:21 pm

Well on tapes we only want fullbackups so its more like GF i guess :-)
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby v.Eremin » Tue Apr 14, 2015 12:33 pm

Then, you'll be glad to hear that we're working on delivering proper GFS retention on tapes in version 9. So, not only would your goal be achieved, but also usage of complex type of schedule would not be required any longer. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby athome » Tue Apr 14, 2015 12:51 pm

v.Eremin wrote:Then, you'll be glad to hear that we're working on delivering proper GFS retention on tapes in version 9. So, not only would your goal be achieved, but also usage of complex type of schedule would not be required any longer. Thanks.


Ahh.. great to hear.. I guess v9 is scheduled for end of the year or something?

Any suggestion on how to workaround this until then? this environment is quite large so the copyjobs to tape takes up to 60 hours(4 x LTO-drives).. but I guess.. we COULD try to schedule a job for a dedicated monthly-pool starting after the weekly have been running. one option could maybe to do as nunciate mentioned earlier in this thread (not certain that I understood the part of running the "catalog tape" of it though):
nunciate wrote:Now for monthly and yearly backups.
Created 1 Monthly Pool with a retention of 3 years and 1 yearly with Never Overwrite. Did not create new media set on both of these as it doesn't matter because it will use the media set created during the weekly backups.
So on the first Friday of every month I let my backups run over the weekend. When I come in on Monday I move the weekly those backup tapes to my Monthly pool. Usually about 10 tapes. I then do a catalog tape job on each one. takes about an hour. That gets my data back into the catalog. Then I export the tapes and send them offsite. Same for yearly tapes



A
athome
Enthusiast
 
Posts: 56
Liked: 1 time
Joined: Fri Jul 16, 2010 9:26 am
Full Name: Anders Thome

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby v.Eremin » Tue Apr 14, 2015 5:48 pm

Ahh.. great to hear.. I guess v9 is scheduled for end of the year or something?

Unfortunately, we cannot provide any ETA at the moment.

we COULD try to schedule a job for a dedicated monthly-pool starting after the weekly have been running. one option could maybe to do as nunciate mentioned earlier in this thread (not certain that I understood the part of running the "catalog tape" of it though):

I assume he is talking about moving written tapes to a different media pool and cataloguing them afterwards (right-click on medium -> Catalogue). It might be a workaround, though I think usage of combination of dedicated job and dedicated media pool is a better option.

Not sure whether it's likely to work, but you can try to add pre-command to a weekly job that will check whether or a weekly or monthly job should be started on that day and start the required one accordingly.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Copy to tape how to differentiate on month/weekly schedu

Veeam Logoby DChiavari » Fri Jun 26, 2015 3:19 pm 1 person likes this post

Just in case anyone needs this (while waiting for v9), here is an updated script that will work with v8 (thank you Vladimir).

If you have the word "weekly" in your job names, you can disable/enable them all at once with this code:

DISABLE
Code: Select all
asnp VeeamPSSNapin
$TapeJobs = Get-VBRTapeJob | ? {$_.Name -Like "*weekly*"}
Disable-VBRJob -Job $TapeJobs


ENABLE
Code: Select all
asnp VeeamPSSNapin
$TapeJobs = Get-VBRTapeJob | ? {$_.Name -Like "*weekly*"}
Enable-VBRJob -Job $TapeJobs

For example, if you have weekly jobs to tape on Friday and a monthly job on the last Friday of the month, you could schedule the Disable script to run on the last friday of the month and the Enable script on the first day of the month.
Danilo Chiavari
Veeam Systems Engineer - Italy

www.danilochiavari.com
DChiavari
Veeam Software
 
Posts: 550
Liked: 107 times
Joined: Thu Feb 02, 2012 7:03 pm
Location: Rome, IT
Full Name: Danilo Chiavari

Next

Return to Tape



Who is online

Users browsing this forum: No registered users and 4 guests