Scheduling Backups with Task Manager and PowerShell

PowerShell script exchange

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby v.Eremin » Wed Dec 16, 2015 11:46 am

Leverage something like this:

Code: Select all
asnp VeeamPSSnapin
$Job = Get-VBRTapejob -name "Name of your tape job"
$Daily = New-VBRDailyOptions -Type Everyday -Period "New Period" #say "11:00"
$NewSchedule  = New-VBRBackupToTapeScheduleOptions -Type Daily -DailyOptions $Daily -Enabled
Set-VBRBackupToTapeJob -Job $Job -ScheduleOptions $NewSchedule


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

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby cffit » Wed Dec 16, 2015 3:02 pm

Thanks Vladimir. Is there a one-liner this could be cut down to and also specified to only set the schedule to Sunday?
cffit
Expert
 
Posts: 338
Liked: 33 times
Joined: Fri Jan 20, 2012 2:36 pm
Full Name: Christensen Farms

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby v.Eremin » Wed Dec 16, 2015 5:03 pm 1 person likes this post

It can be converted into a one-liner, though, into long one:

Code: Select all
Set-VBRBackupToTapeJob -Job (Get-VBRTapeJob -Name "Name of your job") -ScheduleOptions (New-VBRBackupToTapeScheduleOptions -Type Daily -Enabled -DailyOptions (New-VBRDailyOptions -DayOfWeek Saturday -Period "New period"))


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

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby cffit » Wed Dec 16, 2015 5:20 pm

Thanks Tom and Vladimir. This is what I needed and I am going to write up what I did to explain to others how this worked for me. I am still adamant that it should be an option in the GUI :)
cffit
Expert
 
Posts: 338
Liked: 33 times
Joined: Fri Jan 20, 2012 2:36 pm
Full Name: Christensen Farms

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby Darius-HL » Mon Jul 24, 2017 1:51 am

I could not agree more with the original poster! For an enterprise grade product, It's a shame to not have a more dependable, GUI-based scheduling approach which helps to ensure that a job runs even if a previous job were to run over - without the pitfalls of chained jobs.
Darius-HL
Lurker
 
Posts: 1
Liked: never
Joined: Mon Jul 24, 2017 1:46 am
Full Name: Darius L

Re: Scheduling Backups with Task Manager and PowerShell

Veeam Logoby v.Eremin » Mon Jul 24, 2017 11:46 am

Hi, Darius,

Could elaborate on the issue experienced? May be there is something we can propose to you.

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

Previous

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 11 guests