PowerShell script exchange
Post Reply
Asahi
Expert
Posts: 143
Liked: 7 times
Joined: Jun 03, 2016 5:44 am
Full Name: Iio Asahi
Location: Japan
Contact:

About the snapshot information that can be obtained by the Get-VBRRestorePoint command

Post by Asahi »

Hi,

I have a question about Veeam's PowerShell. :D
There is a command called Get-VBRRestorePoint.

For example, I ran it like this
===
Get-VBRRestorePoint -Name "Tiny"
===
This VM called "Tiny" is included in Veeam replication job.
On the replication job side, I set the Restore Point as "1".

At this time, I thought that only one result will be returned.
However, five Restore Points were returned. :shock:
In all five cases, the Type was Snapshot. :?

I investigated the remaining four Restore Points.
I found out that they were HPE Nimble storage snapshots registered to Storage Infrastructure.

Both the restore points created by the Veeam replication job and the restore points created by the Nimble storage snapshot have a Type of "Snapshot".
Is there any way to tell the difference?

Kind Regards,
Asahi,
Climb Inc.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: About the snapshot information that can be obtained by the Get-VBRRestorePoint command

Post by oleg.feoktistov » 1 person likes this post

Hi,

Yes, you have 2 options.

Option 1 - Get replica objects, then get restore points for them explicitly:

Code: Select all

$replicas = Get-VBRReplica -Name 'Replica'
Get-VBRRestorePoint -Backup $replicas
Option 2 - Differentiate restore points directly by finding out the result of invoking IsReplica() method:

Code: Select all

$restorePoints = Get-VBRRestorePoint -Name 'VM Name'
foreach ($rp in $restorePoints) {
  if ($rp.IsReplica() -eq $true) {
    $isReplica = $true
  }
  else {
    $isReplica = $false
  }
  $rp | select Name, CreationTime, Type, @{n='IsReplica';e={$isReplica}}
} 
Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests