-
- Enthusiast
- Posts: 41
- Liked: 1 time
- Joined: Mar 12, 2019 6:29 am
- Full Name: lior
- Contact:
assign specific proxies to all replica jobs
hi, i'm unfamiliar with veeam's shell
i have vmware backups and replication jobs
i have multiple proxies. i want to assign 2 specific proxies to all replication jobs (only replication jobs) at once
what's the correct syntax for that? thank you
i have vmware backups and replication jobs
i have multiple proxies. i want to assign 2 specific proxies to all replication jobs (only replication jobs) at once
what's the correct syntax for that? thank you
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: assign specific proxies to all replica jobs
Hi,
First, you need to assign these 2 proxies with a discriminator. Something, that would distinguish them from other proxies.
For example, 'Replica Proxy' in Description field.
Then, using Set-VBRViReplicaJob cmdlet, you can construct something like this:
Just make sure that both proxies are suitable for Source and Target proxy roles simultaneously.
Check this page for more information on proxy selection.
Thanks,
Oleg
First, you need to assign these 2 proxies with a discriminator. Something, that would distinguish them from other proxies.
For example, 'Replica Proxy' in Description field.
Then, using Set-VBRViReplicaJob cmdlet, you can construct something like this:
Code: Select all
$replicas = Get-VBRJob | Where-Object {$_.JobType -eq 'Replica'}
$replicaProxies = Get-VBRViProxy | Where-Object {$_.Description -match 'Replica Proxy'}
foreach ($replica in $replicas) {
Set-VBRViReplicaJob -Job $replica -SourceProxy $replicaProxies -TargetProxy $replicaProxies
}
Check this page for more information on proxy selection.
Thanks,
Oleg
-
- Enthusiast
- Posts: 41
- Liked: 1 time
- Joined: Mar 12, 2019 6:29 am
- Full Name: lior
- Contact:
Re: assign specific proxies to all replica jobs
thank you. and what if i want to do the same for auto selection? both for source and destination proxies
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: assign specific proxies to all replica jobs
Hi,
Then use the code below:
Best regards,
Oleg
Then use the code below:
Code: Select all
$replicas = Get-VBRJob | Where-Object {$_.JobType -eq 'Replica'}
foreach ($replica in $replicas) {
$jobOptions = Get-VBRJobOptions -Job $replica
$jobOptions.JobOptions.SourceProxyAutoDetect = $True
$jobOptions.JobOptions.TargetProxyAutoDetect = $True
Set-VBRJobOptions -Job $replica -Options $jobOptions
}
Oleg
-
- Enthusiast
- Posts: 41
- Liked: 1 time
- Joined: Mar 12, 2019 6:29 am
- Full Name: lior
- Contact:
Re: assign specific proxies to all replica jobs
thank you very much
Who is online
Users browsing this forum: No registered users and 3 guests