Cloud Storage Utilisation

PowerShell script exchange

Cloud Storage Utilisation

Veeam Logoby david@fluent2.co.uk » Wed Mar 08, 2017 3:31 pm

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
david@fluent2.co.uk
Lurker
 
Posts: 2
Liked: never
Joined: Wed Mar 08, 2017 3:00 pm
Full Name: David Dowle

Re: Cloud Storage Utilisation

Veeam Logoby tdewin » Wed Mar 08, 2017 6:17 pm

It seems it has been added to the native get-vbrbackuprepository: powershell-f26/get-vbrbackuprepository-why-no-size-info-t27296.html#p179993

(But don't have lab access at this point to validate)
tdewin
Veeam Software
 
Posts: 1110
Liked: 391 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin

Re: Cloud Storage Utilisation

Veeam Logoby v.Eremin » Thu Mar 09, 2017 9:26 am

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.
v.Eremin
Veeam Software
 
Posts: 13734
Liked: 1027 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Cloud Storage Utilisation

Veeam Logoby david@fluent2.co.uk » Sun Mar 12, 2017 11:19 pm

Brilliant! That worked! Thank you so much!
david@fluent2.co.uk
Lurker
 
Posts: 2
Liked: never
Joined: Wed Mar 08, 2017 3:00 pm
Full Name: David Dowle

Re: Cloud Storage Utilisation

Veeam Logoby v.Eremin » Mon Mar 13, 2017 10:46 am

You're welcome. Feel free to contact us, if other assistance is needed.
v.Eremin
Veeam Software
 
Posts: 13734
Liked: 1027 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Get-VBRBackupRepository Cloud Storage Space

Veeam Logoby ePowerIT » Sun Aug 06, 2017 12:45 pm

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
ePowerIT
Novice
 
Posts: 4
Liked: never
Joined: Thu Jun 22, 2017 9:09 pm
Full Name: David Dowle

Re: Get-VBRBackupRepository Cloud Storage Space

Veeam Logoby tdewin » Mon Aug 07, 2017 7:26 am

Please see if this post meets your requirements : powershell-f26/cloud-storage-utilisation-t41554.html#p233088
tdewin
Veeam Software
 
Posts: 1110
Liked: 391 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 1 guest