PowerShell script exchange
Post Reply
MarcinS
Enthusiast
Posts: 29
Liked: 2 times
Joined: May 18, 2015 8:31 am
Contact:

failover to standard backup

Post by MarcinS »

Hi Guys,

i try to make script to enumerate through all backup/replica jobs and deselect/uncheck "failover to standard backup" on "storage integration" tab inside Advanced option for Storage. I have no problem with script it self but have problem where to find that option . Please help

Marcin
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: failover to standard backup

Post by veremin »

Hi, Marcin,

Try the following example:

Code: Select all

asnp VeeamPSSNapin
$Job = Get-VBRJob -Name "Name of your backup job"
$Options = $Job.GetOptions()
$Options.SanIntegrationOptions.FailoverFromSan = either $True or $False
$Job.SetOptions($Options)
Thanks.
MarcinS
Enthusiast
Posts: 29
Liked: 2 times
Joined: May 18, 2015 8:31 am
Contact:

Re: failover to standard backup

Post by MarcinS » 1 person likes this post

i think i found by myself :)

.SanIntegrationOptions >> UseSanSnapshots & FailoverFromSan
MarcinS
Enthusiast
Posts: 29
Liked: 2 times
Joined: May 18, 2015 8:31 am
Contact:

Re: failover to standard backup

Post by MarcinS »

hehe i see that i was slower :) but found good options :) ...thx v.Eremin
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: failover to standard backup

Post by veremin »

Veeam is all about speed, you know. :)

Anyway, glad to hear that you've nailed it.
RubinCompServ
Service Provider
Posts: 326
Liked: 78 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Re: failover to standard backup

Post by RubinCompServ » 1 person likes this post

veremin wrote: May 18, 2015 9:30 am Hi, Marcin,

Try the following example:

Code: Select all

asnp VeeamPSSNapin
$Job = Get-VBRJob -Name "Name of your backup job"
$Options = $Job.GetOptions()
$Options.SanIntegrationOptions.FailoverFromSan = either $True or $False
$Job.SetOptions($Options)
Thanks.
This script worked for me, but I had to change the final line to

Code: Select all

Set-VBRJobOptions -Job $Job -Options $Options
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests