PowerShell script exchange
Post Reply
Aholibar
Service Provider
Posts: 2
Liked: never
Joined: Sep 20, 2017 2:16 am
Full Name: Adam Holibar
Contact:

Object Storage Recovery Point Size

Post by Aholibar »

Hi

How can we get the actual used size of each recovery point in object storage in V12?
From other posts I can see this unsupported code below used to work for V11

Code: Select all

$backup = Get-VBRBackup
$shadowBackups = $backup.FindShadowCapacityTierCopies()
foreach ($shadowBackup in $shadowBackups)
{
    $index = [Veeam.Backup.DBManager.CDBManager]::Instance.BackupArchiveIndex.FindByShadowBackupId($shadowBackup.Id)
    $shadowBackup | Select-Object Name, @{n = 'ObjectStorageSizeGB'; e = { [Math]::Round($index.UsedSize / 1GB, 1) } }
}
Specific scenario is SOBR with S3 compatible capacity tier, both copy and move enabled
If a copy job direct to object is called differently then it would be great to know that too
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Object Storage Recovery Point Size

Post by david.domask »

Hi @Aholibar, can you try Oleg's code from this post?

post485295.html#p485295

I think the resultant objects should have what you're looking for.
David Domask | Product Management: Principal Analyst
Aholibar
Service Provider
Posts: 2
Liked: never
Joined: Sep 20, 2017 2:16 am
Full Name: Adam Holibar
Contact:

Re: Object Storage Recovery Point Size

Post by Aholibar »

Hi David

That gives the raw data and backup sizes pre object storage but not the actual consumed space far as I can tell

Code: Select all

($totalStorages.stats.backupsize | Measure-Object -sum).sum /1GB
Backupsize total lines up with the first value in backup properties of a capacity tier backup but not the bracketed actual value
Backup size: X TB (X TB actual)
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests