PowerShell script exchange
Post Reply
david@fluent2.co.uk
Lurker
Posts: 2
Liked: never
Joined: Mar 08, 2017 3:00 pm
Full Name: David Dowle
Contact:

Cloud Storage Utilisation

Post by david@fluent2.co.uk »

Hi All,

Hope you are able to help with my problem

I am trying to use powershell to identify how much content we have stored within the cloud storage for Veeam B&R. Looking at the GUI, this information is displayed, when going to Backup Infrastructure > Backup Repositories, and opening the properties of the Cloud Backup connector.

I can't seem to find anywhere in Powershell to gather this information though.

I found this article, which is useful, powershell-f26/repository-size-t10674.html, however only seems to work for local storage repositories, and doesn't return any values for the cloud storage.

Does anyone know of anyway to achieve this?

Thanks

David
tdewin
Veeam Software
Posts: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Cloud Storage Utilisation

Post by tdewin »

It seems it has been added to the native get-vbrbackuprepository: powershell-f26/get-vbrbackuprepository- ... ml#p179993

(But don't have lab access at this point to validate)
veremin
Product Manager
Posts: 20389
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Cloud Storage Utilisation

Post by veremin »

Input a name of your cloud job in the script below and see whether it helps:

Code: Select all

Get-VBRBackup | where {$_.name -eq "Name of your Job"} | Select @{N="Job Name";E={$_.Name}}, @{N="Size (GB)";E={[math]::Round(($_.GetAllStorages().Stats.BackupSize | Measure-Object -Sum).Sum/1GB,1)}} | Format-Table -AutoSize
Thanks.
david@fluent2.co.uk
Lurker
Posts: 2
Liked: never
Joined: Mar 08, 2017 3:00 pm
Full Name: David Dowle
Contact:

Re: Cloud Storage Utilisation

Post by david@fluent2.co.uk »

Brilliant! That worked! Thank you so much!
veremin
Product Manager
Posts: 20389
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Cloud Storage Utilisation

Post by veremin »

You're welcome. Feel free to contact us, if other assistance is needed.
ePowerIT
Novice
Posts: 4
Liked: never
Joined: Jun 22, 2017 9:09 pm
Full Name: David Dowle
Contact:

[MERGED] Get-VBRBackupRepository Cloud Storage Space

Post by ePowerIT »

Hi,

I am trying to get the quota and space used for a cloud repository. I am using Get-VBRBackupRepository, which works perfectly for local storage, however for cloud storage returns -1

The fields i am collecting are info.CachedTotalSpace and info.CachedFreeSpace.

Within the GUI the values are shown correctly.

Many thanks

David
tdewin
Veeam Software
Posts: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Get-VBRBackupRepository Cloud Storage Space

Post by tdewin »

Please see if this post meets your requirements : powershell-f26/cloud-storage-utilisatio ... ml#p233088
Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests