PowerShell script exchange
Post Reply
StanoSedliak
Service Provider
Posts: 112
Liked: 12 times
Joined: Mar 20, 2018 6:31 am
Full Name: Stano Sedliak
Contact:

Script/report for backup size for every backup copy job on S3 storage

Post by StanoSedliak »

Hi,

we would like to offer to our customers the possibility "duplicate" their backups jobs to a private S3 Object storage, to be able to do the correct billing I would need a script where our billing team can see: BackupCopyjobCUSTOMERA - backup size 500Gb fro example etc... I tried few script here but it didnt show me the used size as it was for on premise repository. Do you have some tips/hints please?

I know in Veeam GUI I can see it under: Backup->Object Storage (Copy)->Right click on the Backup copy job name and there I can see Backup size: xy but I would need some script as we need it for xy jobs/customers.

Thank you!
oleg.feoktistov
Veeam Software
Posts: 2021
Liked: 673 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Script/report for backup size for every backup copy job on S3 storage

Post by oleg.feoktistov » 1 person likes this post

Hi Stano,

Try this one changing your backup name:

Code: Select all

$backup = Get-VBRBackup -Name 'Backup 1'
$sizeTotal = $null
foreach ($size in $backup.GetAllChildrenStorages().Stats.BackupSize) { $sizeTotal += $size}

$backup | select Name, @{n='SizeGB';e={[Math]::Round($sizeTotal/1GB, 2)}}
Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests