PowerShell script exchange
Post Reply
kortex
Influencer
Posts: 12
Liked: never
Joined: May 16, 2019 12:49 pm
Full Name: Manuel Berfelde
Contact:

Get Repository for Application Restorepoint

Post by kortex »

Hi all,

how can i get the repo for an application restore point?

Veeam.Backup.PowerShell.Infos.VBRApplicationRestorePoint does not have a method like GetRepository().
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Get Repository for Application Restorepoint

Post by oleg.feoktistov » 1 person likes this post

Hi Manuel,

You can still get this application restore point with Get-VBRRestorePoint cmdlet since VBRApplicationRestorePoint and COib class instances refer to the same entity, they just contain distinct information about it and are used in different ways.

Code: Select all

$appPoint = Get-VBRApplicationRestorePoint -Name 'Exchange' -Exchange
$rp = Get-VBRRestorePoint | where {$_.Id -eq $appPoint.Id}
$rp.GetRepository()
Thanks,
Oleg
kortex
Influencer
Posts: 12
Liked: never
Joined: May 16, 2019 12:49 pm
Full Name: Manuel Berfelde
Contact:

Re: Get Repository for Application Restorepoint

Post by kortex »

Hi Oleg,

I could have sworn I tried something like that...
This works for me.

Thanks for the quick help!

Manuel
kortex
Influencer
Posts: 12
Liked: never
Joined: May 16, 2019 12:49 pm
Full Name: Manuel Berfelde
Contact:

Re: Get Repository for Application Restorepoint

Post by kortex »

well it work almost

Get-VBRRestorePoint | where {$_.Id -eq $appPoint.Id}
returns nothing

guess i have to loop
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Get Repository for Application Restorepoint

Post by oleg.feoktistov »

If you are planning to use it with multiple restore points, you'll sure need to loop through them. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests