Daily-Weekly-Monthly-Yearly backup scheduling

Everything about backing up to tape

Daily-Weekly-Monthly-Yearly backup scheduling

Veeam Logoby mshin » Mon Sep 01, 2014 6:10 am

Hi,

We're trying to get GFS tape backup scheduled.
Our intention is to have 4 media pools with different retention.
Daily will run Mon~Thur night, weekly/monthly/yearly on Friday.
Is there any way to schedule these jobs so that weekly runs on all Fridays except for the last Friday of the month?
Something like cancel job if no tape drive is available for 30 min would do the trick, as I can schedule monthly/yearly job to run 10 minutes before the weekly job.

Thanks

Mike
mshin
Novice
 
Posts: 4
Liked: never
Joined: Fri Jun 22, 2012 3:12 pm

Re: Daily-Weekly-Monthly-Yearly backup scheduling

Veeam Logoby v.Eremin » Mon Sep 01, 2014 8:19 am

Since you're after GFS rotation scheme, this post might be helpful. As to your second question, you can schedule a simple script disabling a job execution on the last Friday of the month.

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

Re: Daily-Weekly-Monthly-Yearly backup scheduling

Veeam Logoby mshin » Tue Sep 02, 2014 2:47 am

I've ended up writing up a quick script.
Hope this helps anyone who's having similar problem.

$today=get-date
$nextfri=get-date.adddays(7)

If($today.month –ne $nextfri.month) {
Get-VBRJOB | where {$_.name -eq "Weekly Job Name"} | Disable-VBRJob
Get-VBRJOB | where {$_.name -eq "Monthly Job Name"} | enable-VBRJob
} else {
Get-VBRJOB | where {$_.name -eq "Weekly Job Name"} | Enable-VBRJob
Get-VBRJOB | where {$_.name -eq "Monthly Job Name "} | Disable-VBRJob
}

THis can be scheduled to run every friday before job starts, to enable monthly and disable weekly on last friday of the months (and vice versa for any other friday)
mshin
Novice
 
Posts: 4
Liked: never
Joined: Fri Jun 22, 2012 3:12 pm

Re: Daily-Weekly-Monthly-Yearly backup scheduling

Veeam Logoby v.Eremin » Tue Sep 02, 2014 7:02 am

I believe that it would be easier to write a simple script that disables weekly job and schedule this script (via Task Scheduler) to take place on the last Friday of month. Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to Tape



Who is online

Users browsing this forum: No registered users and 5 guests