PowerShell script exchange
Post Reply
damtux
Novice
Posts: 6
Liked: never
Joined: Jun 08, 2012 12:35 pm
Full Name: damtux
Contact:

Create Replication Job with Folders

Post by damtux »

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 !
Damon
Influencer
Posts: 16
Liked: never
Joined: May 29, 2011 1:55 am
Contact:

Re: Create Replication Job with Folders

Post by Damon »

You could use PowerCLI.

Get-vm -location xyz

Add the VMs returned to the script so you backup each VM in the folder!
Sethbartlett
Veteran
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: Create Replication Job with Folders

Post by Sethbartlett » 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.
damtux
Novice
Posts: 6
Liked: never
Joined: Jun 08, 2012 12:35 pm
Full Name: damtux
Contact:

Re: Create Replication Job with Folders

Post by damtux »

Thanks sethbartlett ! Works very well !
Indeed it would be great to have those features in PS.
Sethbartlett
Veteran
Posts: 282
Liked: 26 times
Joined: Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett
Contact:

Re: Create Replication Job with Folders

Post by Sethbartlett »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests