Start-VBRRestoreVM original location

PowerShell script exchange

Start-VBRRestoreVM original location

Veeam Logoby md.casa » Mon Sep 24, 2012 2:47 pm

Hello everybody,

I am testing Veeam Backup 6.1 in my VMware environment. I have cluster on three esxi host with vCenter and almost everything works fine. :)
Restoring to a new location works great.
Code: Select all
Start-VBRRestoreVM -RestorePoint (Get-VBRBackup -name "$job_name" | Get-VBRRestorePoint | ?{$_.Id.tostring() -like "$res_point"}) -server (Get-VBRServer -name "$esxi") -resourcepool (Find-VBRResourcePool -Server (Get-VBRServer -name "$esxi")) -PowerUp $TRUE


But I want to use quick restore to the original location via powershell without specifying specific datastore end esxi server like in GUI.
Is it possible set it up to original location?

Thanks, MD
md.casa
Novice
 
Posts: 4
Liked: never
Joined: Mon Sep 24, 2012 1:26 pm

Re: Start-VBRRestoreVM original location

Veeam Logoby Gostev » Sun Sep 30, 2012 7:51 pm

Hello, no I don't think so.
Gostev
Veeam Software
 
Posts: 21396
Liked: 2350 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Start-VBRRestoreVM original location

Veeam Logoby Sethbartlett » Mon Oct 01, 2012 3:44 pm

If you do not specify a datastore, resourcepool or folder, it will pick the default one for the host you are referencing. I guess you could query where the original location is for the current VM and use those as the variables you need.
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: Start-VBRRestoreVM original location

Veeam Logoby md.casa » Mon Oct 01, 2012 3:55 pm

Thank you for Your answers.
Yes I Could but I am looking for shorter solution. It doesnt exist so I have to use longer one.
md.casa
Novice
 
Posts: 4
Liked: never
Joined: Mon Sep 24, 2012 1:26 pm


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests