Calculate the Size of Filebase Buckets using PowerShell
Learn how to calculate the size of Filebase Buckets using PowerShell.
What is PowerShell?
1. Open your PowerShell command line.
2. Next, we need to configure our Filebase credentials.
3. Next, to calculate the size of a Filebase bucket, we’ll use the Get-S3Object command.
4. Then, we can reference the variable $ObjectList, and pipe the output into the Select-Object command that includes a filter for Size only, since this is the only property we are concerned about.
5. Since this output includes different properties, not only the Sum property, we’ll extract only the Sum property with the command:
6. This workflow is great for calculating individual bucket size, but what about calculating the size of all buckets on your Filebase account?
Last updated