I'm trying to enhance the report by showing which RP's are on-prem and which are in the S3 part of the SOBR.
Code: Select all
# Build an array of the restore points
$BackupRestorePoints = Get-VBRRestorePoint -Backup $JobName
$ArrayRestorePoints = @()
foreach ($RestorePoint in $BackupRestorePoints) {
$ArrayRestorePoint = New-Object -TypeName PSObject
$ArrayRestorePoint | Add-Member -MemberType NoteProperty -Name "VmName" -Value $RestorePoint.VmName
$ArrayRestorePoint | Add-Member -MemberType NoteProperty -Name "CreationTime" -Value $RestorePoint.CreationTime
$ArrayRestorePoint | Add-Member -MemberType NoteProperty -Name "Type" -Value $RestorePoint.Type
$RestorePoint.GetChainStorages() | select iscontentinternal,iscontentexternal
if ($RestorePoint.GetChainStorages().IsContentExternal) {
$ArrayRestorePoint | Add-Member -MemberType NoteProperty -Name "Offsite" -Value "AWS S3"
} else {
$ArrayRestorePoint | Add-Member -MemberType NoteProperty -Name "Offsite" -Value ""
}
$ArrayRestorePoints += $ArrayRestorePoint
}
I've also tried Get-VBRSOBRObjectStorageRestorePoint, but as that selects by the server name and not the backup job, it's not always returning the correct data in terms of the backup that created the file (assuming the same server is backed up in more than one job).
Anyone know of a hard-to-find property somewhere that definitively tells me where the physical backup file is stored?
Cheers, Rob