-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 13, 2024 3:57 pm
- Full Name: John Forman
- Contact:
Add new proxy to all backup jobs
We have to manually select proxy usage for each job and then manually set any new proxy server in the jobs as we add proxy servers to the environment.
Is there a way to use PowerShell to set a new proxy server for all backup jobs at once?
I've seen a few posts about removal of old and addition of new, but not sure how to edit the scripts to just add a new one after grabbing all the job names. Here is the post I was looking at for inspiration <powershell-f26/replace-a-proxy-on-multi ... 91334.html>.
Any help in getting this figured out would be greatly appreciated.
Is there a way to use PowerShell to set a new proxy server for all backup jobs at once?
I've seen a few posts about removal of old and addition of new, but not sure how to edit the scripts to just add a new one after grabbing all the job names. Here is the post I was looking at for inspiration <powershell-f26/replace-a-proxy-on-multi ... 91334.html>.
Any help in getting this figured out would be greatly appreciated.
-
- Product Manager
- Posts: 9848
- Liked: 2610 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Add new proxy to all backup jobs
Hi John
Here an example code to add a proxy to existing VmWare backup jobs:
May I ask, why you manage proxies per job?
Why not just using automatic proxy selection or proxy affinity?
Best,
Fabian
Here an example code to add a proxy to existing VmWare backup jobs:
Code: Select all
$newproxy = Get-VBRVIProxy -Name "NEW-PROXY-NAME"
$jobs = Get-VBRJob | where {$_.TypetoString -eq "VmWare Backup"}
foreach ($job in $jobs)
{
$usedProxy = Get-VBRJobProxy -Job $job
$proxylist = $usedProxy + $newproxy
Set-VBRJobProxy -Job $job -Proxy $proxylist
}
Why not just using automatic proxy selection or proxy affinity?
Best,
Fabian
Product Management Analyst @ Veeam Software
-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 13, 2024 3:57 pm
- Full Name: John Forman
- Contact:
Re: Add new proxy to all backup jobs
Thank you!!
We have 4 proxy servers that are connected only to a specific cloud provider for DR. These proxies are only used as a source target for these select replication jobs. So to keep the backup jobs from trying to use them we have to tell every job to only use the other 5 proxy servers we have.
I'm reading up on proxy affinity now, thank you. Off the top of your head do you think proxy affinity can help us out in our scenario?
We have 4 proxy servers that are connected only to a specific cloud provider for DR. These proxies are only used as a source target for these select replication jobs. So to keep the backup jobs from trying to use them we have to tell every job to only use the other 5 proxy servers we have.
I'm reading up on proxy affinity now, thank you. Off the top of your head do you think proxy affinity can help us out in our scenario?
-
- Product Manager
- Posts: 9848
- Liked: 2610 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Add new proxy to all backup jobs
Thank for explaining your use case.
Proxy Affinity rules allow you to bind a proxy server to a backup repository. The backup job will prioritize those proxies in the job session. Instead of configuring the proxy selection on job level, you can specify it once on the backup repository. All backup jobs pointing to that repository will first try to use one of the proxies assigned to that repository.
But if you want to make 100% sure, that the backup job doesn't use a "replication proxy", then setting the proxies in the backup job is the better way.
Best,
Fabian
Proxy Affinity rules allow you to bind a proxy server to a backup repository. The backup job will prioritize those proxies in the job session. Instead of configuring the proxy selection on job level, you can specify it once on the backup repository. All backup jobs pointing to that repository will first try to use one of the proxies assigned to that repository.
But if you want to make 100% sure, that the backup job doesn't use a "replication proxy", then setting the proxies in the backup job is the better way.
Best,
Fabian
Product Management Analyst @ Veeam Software
-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 13, 2024 3:57 pm
- Full Name: John Forman
- Contact:
Re: Add new proxy to all backup jobs
That is exactly what I needed!
Thank you for the assist.
Thank you for the assist.
Who is online
Users browsing this forum: No registered users and 10 guests