-
- Novice
- Posts: 3
- Liked: never
- Joined: Jul 21, 2017 9:58 am
- Full Name: Stefan Kiemann
- Contact:
Backup size for Veeam Agent for Windows
Hallo, i have a question,
in VBR I could show me the backup size of an Veeam Agent for Windows Backup. Could I do this also with powershell?
in VBR I could show me the backup size of an Veeam Agent for Windows Backup. Could I do this also with powershell?
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Backup size for Veeam Agent for Windows
Have you tried already Get-VBRBackup cmdlet?
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jul 21, 2017 9:58 am
- Full Name: Stefan Kiemann
- Contact:
Re: Backup size for Veeam Agent for Windows
Thanks for your help.
Yes I use Get-VBRBackup, but with Get-VBRBackup I did not get any inforamtion about backup size. The only size I get is wenn I use Get-VBRRestorePoint. Their is a variable ApproxSize but this value is without dedup and compression.
Yes I use Get-VBRBackup, but with Get-VBRBackup I did not get any inforamtion about backup size. The only size I get is wenn I use Get-VBRRestorePoint. Their is a variable ApproxSize but this value is without dedup and compression.
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Backup size for Veeam Agent for Windows
What about the following one-liner:
Thanks.
Code: Select all
Get-VBRBackup | Select @{N="Job Name";E={$_.Name}}, @{N="Size (GB)";E={[math]::Round(($_.GetAllStorages().Stats.BackupSize | Measure-Object -Sum).Sum/1GB,1)}} | Format-Table -AutoSiz
-
- Novice
- Posts: 3
- Liked: never
- Joined: Jul 21, 2017 9:58 am
- Full Name: Stefan Kiemann
- Contact:
Re: Backup size for Veeam Agent for Windows
Thank you for your help. This was what i need $_.GetAllStorages().Stats.BackupSize
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Backup size for Veeam Agent for Windows
You're welcome. As always with PowerShell it's all about discovery process. I typically assign this or that object to a variable, and then start digging deeper into the properties and methods it has, trying to find information I need. Thanks.
Who is online
Users browsing this forum: No registered users and 10 guests