PowerShell script exchange
Post Reply
arun.kr
Service Provider
Posts: 25
Liked: never
Joined: Aug 16, 2014 1:13 am
Full Name: Arun Kumar
Contact:

create backup opy job from powershell

Post by arun.kr »

Hello,

I have to create a bcakup job and When i am executing below commands

Code: Select all

$Server = Get-VBRServer -Name "vcenter namel"
$VM = Find-VBRViEntity -Server $Server -name "vm name"
$repo = Get-VBRBackupRepository -ScaleOut -Name "scale out repository name"
Add-VBRViBackupCopyJob -Name "job name" -Description "File Server" -Entity $VM -Repository $repo
it failed with error

Add-VBRViBackupCopyJob : Parameter set cannot be resolved using the specified named parameters.
At line:4 char:1
+ Add-VBRViBackupCopyJob -Name "ASMD_PROD_AMQC2012FS1_Archive" -Descrip ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Add-VBRViBackupCopyJob], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Veeam.Backup.PowerShell.Cmdlets.AddVBRViBackupCopyJob

I have tried -force, -backup option as well but every time it fails with same error. I don't know what i am missing.

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

Re: create backup opy job from powershell

Post by veremin » 1 person likes this post

In what mode do you plan to use a backup copy job? Direct or Through WAN Accelerators? In former case set -DirectOperation switch, in later - pair of WAN Accelerators.

Thanks.
arun.kr
Service Provider
Posts: 25
Liked: never
Joined: Aug 16, 2014 1:13 am
Full Name: Arun Kumar
Contact:

Re: create backup opy job from powershell

Post by arun.kr »

thank you very much for your support.
veremin
Product Manager
Posts: 20389
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: create backup opy job from powershell

Post by veremin »

You're welcome. Should other help be needed, don't hesitate to let us know. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests