Script to create backup job for list of VBR servers

PowerShell script exchange

Script to create backup job for list of VBR servers

Veeam Logoby emmoon1981 » Thu Jul 28, 2016 5:56 am

Hi everyone,
I'm looking for a powershell script that will do all my job configuration and policies for list of VBR servers
something like this
Connect-VBRServer -server "Myserver"-user "administrator" -password "mypass"
Find-VBRViEntity -Name myVMServerName* | Add-VBRViBackupJob -Name "Backup job name"
.
.
.
Disconnect-VBRServer

For list of VBR servers .
Thanks
emmoon1981
Novice
 
Posts: 5
Liked: never
Joined: Sat Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni

Re: Script to create backup job for list of VBR servers

Veeam Logoby v.Eremin » Mon Aug 01, 2016 11:15 am

Such script doesn't exist at the moment, so you'll have to create it on your own.

However, this task might not be that tough, as it initially looks - PS subforum contains several examples on how a job can be created via PS. So, the only missing part is applying the creation rules to multiple VB&R server.

What you can do is to create a list of servers (DNS names, required credentials) and connect to them one by one within a cycle. Something like:

Code: Select all
foreach ($Server in $Servers){
Connect-VBRServer -$Server.name -User $Server.UserName -Password $Server.UserPassword
}


Where $Server variable consists of VB&R server address, user name and password.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests