Create Replication Job with Folders

PowerShell script exchange

Create Replication Job with Folders

Veeam Logoby damtux » Wed Jun 20, 2012 9:43 am

Hi,

I have to create more than 80 Replication Jobs within Powershell and I have a last issue I can't resolve.

I would like to replicate a Folder not a VM but I get stuck with Veeam Powershell...

I use Add-VBRViReplicaJob successfully when using -Entity to point to a VM but How to point to a Folder instead ?

When I use Find-VBRViEntity -name "Folder1" it doesn't retrieve any object

THanks for your help !
damtux
Novice
 
Posts: 6
Liked: never
Joined: Fri Jun 08, 2012 12:35 pm
Full Name: damtux

Re: Create Replication Job with Folders

Veeam Logoby Damon » Tue Jul 17, 2012 2:04 am

You could use PowerCLI.

Get-vm -location xyz

Add the VMs returned to the script so you backup each VM in the folder!
Damon
Influencer
 
Posts: 16
Liked: never
Joined: Sun May 29, 2011 1:55 am

Re: Create Replication Job with Folders

Veeam Logoby Sethbartlett » Tue Jul 17, 2012 6:02 pm 1 person likes this post

This was a little harder to dig up, but this still works in version 6:

This will allow you to add a folder just by giving a VM listed in that folder, which you only have to do once :)
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Create Replication Job with Folders

Veeam Logoby damtux » Thu Jul 26, 2012 9:08 am

Thanks sethbartlett ! Works very well !
Indeed it would be great to have those features in PS.
damtux
Novice
 
Posts: 6
Liked: never
Joined: Fri Jun 08, 2012 12:35 pm
Full Name: damtux

Re: Create Replication Job with Folders

Veeam Logoby Sethbartlett » Tue Jul 31, 2012 8:37 pm

I agree with you completely ;)
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests