Restore to original location

PowerShell script exchange

Restore to original location

Veeam Logoby vbogda » Thu Dec 11, 2014 2:45 pm

Hi All,

I am looking for a way of finding the original location of a backup object so that I can pass it to the Host parameter of the Start-VBRRestoreVM CmdLet.

Thanks
vbogda
Novice
 
Posts: 8
Liked: never
Joined: Thu Dec 11, 2014 2:19 pm
Full Name: Val Bogda

Re: Restore to original location

Veeam Logoby v.Eremin » Thu Dec 11, 2014 9:27 pm

I believe you can query backup job to find out job objects, assign required one to a variable, and, then, use something like .GetItem() or .Item to explore vSphere object and information about its original location. Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Restore to original location

Veeam Logoby vbogda » Fri Dec 12, 2014 2:03 pm

That's what I thought as well. However, I can't find anything in Object that will give me this information. There's Location but that's not what the Start-VBRRestoreVM command requires.

I found a way of finding the original location by utilising the Find-VBRViEntity command which gives me what I want in VmHostName but it feels like it should be possible to drill down to this information starting from the Backup job.
vbogda
Novice
 
Posts: 8
Liked: never
Joined: Thu Dec 11, 2014 2:19 pm
Full Name: Val Bogda

Re: Restore to original location

Veeam Logoby v.Eremin » Sun Dec 14, 2014 1:57 pm

Once the required object was assigned have you tried to explore its available methods? Some of them like Item or GetItem() should point to vSphere VM object that contains information about the host VM resides on. Thanks.
v.Eremin
Veeam Software
 
Posts: 13281
Liked: 970 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 4 guests