PowerShell script exchange
Post Reply
Avshalom
Influencer
Posts: 18
Liked: never
Joined: Mar 30, 2014 8:00 am
Full Name: Avshalom
Contact:

Set WAN Accelerator to BackupSync Job

Post by Avshalom »

Hi,

I could not find anywhere how to assign/set WAN Accelerator to BackupSync Job using powershell.

the closest i got is the 'Set-VBRViReplicaJob'

Code: Select all

Set-VBRViReplicaJob -Job $Job -SourceWANAccelerator $SourceWan -TargetWANAccelerator $TargetWan
but it says "Set-VBRViReplicaJob : Job type BackupSync is not supported"

How can i assign existing WAN Accelerator to backupSync Job, I prefer not to re-recreate the backup sync job, just update the job to use WAN Accelerator,

Thanks for your help
Avshalom
Influencer
Posts: 18
Liked: never
Joined: Mar 30, 2014 8:00 am
Full Name: Avshalom
Contact:

Re: Set WAN Accelerator to BackupSync Job

Post by Avshalom »

help anybody??
mikeconjoice
Novice
Posts: 7
Liked: 1 time
Joined: May 09, 2016 3:59 pm
Full Name: Mike Conjoice
Location: UK
Contact:

Re: Set WAN Accelerator to BackupSync Job

Post by mikeconjoice »

Hey Avshalom,

VBRViReplicaJob would be for Replication jobs, VBRViBackupCopyJob is for Copy jobs.

I've been having a look today and don't know if this is possible with PowerShell at the moment. There is a UseWan boolean but someone else may have to chime in on what that actually does.

Code: Select all

$VBRJobOptions.JobOptions.UseWan 
The easiest way may be to copy the jobs and set them up using the following command via PowerShell

Code: Select all

$SourceWan = Get-VBRWANAccelerator -Name "Source WAN Name"
$TargetWan = Get-VBRWANAccelerator -Name "Target WAN Name"
$Job = Get-VBRJob -Name "Name of your Backup Copy Job"
Copy-VBRJob -Job $Job -SourceAccelerator $SourceWan -TargetAccelerator $TargetWan
Full disclosure, I haven't tested that and have no idea if it'll work correctly, so please don't try it straight in production!

Let me know if you manage to get it sorted!

Mike
Avshalom
Influencer
Posts: 18
Liked: never
Joined: Mar 30, 2014 8:00 am
Full Name: Avshalom
Contact:

Re: Set WAN Accelerator to BackupSync Job

Post by Avshalom »

Thanks for your effort, it's not helping me, copying a job is like create a new one, flush all history etc.
for creating new job there's already a cmdlet parameter to set wan accel...
I think that veeam team should add this option, maybe a new Set-VBRBackupCopyJob cmdlet with options to set/add wan accel.. to backupCopy Job
thanks
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 19 guests