PowerShell script exchange
Post Reply
gerwin
Service Provider
Posts: 9
Liked: never
Joined: Aug 04, 2011 5:49 pm
Full Name: Gerwin Goodschalk
Contact:

Object-storage repository used space

Post by gerwin »

We are using Wasabi with the "wasabi" object storage option.

For the normal repositories we use the command below. But on a S3/Wasabi repository it ain't working. No value for the Freespace.
When we look in the GUI the used space is visible.

$Repos = get-vbrbackuprepository
$RepoDetails = foreach ($repo in $Repos) {
[PSCustomObject]@{
'Name' = $Repo.Name
'ID' = $Repo.ID
'FreeSpace' = $Repo.GetContainer().CachedFreeSpace.InBytes / 1GB
}
}
$RepoDetails
HannesK
Product Manager
Posts: 14322
Liked: 2890 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Object-storage repository used space

Post by HannesK »

Hello,
I assume, that you ask for "used space" because "free space" works fine for me with your code in my environment.

Does this help?

Best regards,
Hannes
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests