PowerShell script exchange
Post Reply
DanCasan
Service Provider
Posts: 6
Liked: never
Joined: Sep 21, 2022 3:33 pm
Contact:

Size of Backup chain

Post by DanCasan »

Hi all, I want to find size of my backups chains. I know I can see it from the console but, to automate, I would like to use a PS script.
I found something for a VEEAM with a SQL DB, my installation have a postgressql and i can't find information about it.
The configuration of the repository is "use per machine backup files".
Someone has already had the same need? Do you have any advice?

Thank you
mjr.epicfail
Veeam Legend
Posts: 166
Liked: 39 times
Joined: Apr 22, 2022 12:14 pm
Full Name: Danny de Heer
Contact:

Re: Size of Backup chain

Post by mjr.epicfail »

Hi,

Maybe you can find something here: https://github.com/VeeamHub
VMCE / Veeam Legend 1*
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Size of Backup chain

Post by david.domask »

Hi @DanCasan,

post501161.html?hilit=size%20of%20backup#p501161

Check this topic and also check ones from search for "powershell backup size"

Basically you can see how to get the backup size from this thread and can just loop over all restore points for a given backup and size it that way.

$backup = Get-VBRBackup -Name 'name of backup'
$rps = Get-VBRRestorePoint -Backup $backup

That will pull all the restore points for a given backup you feed it, and then you can use the properties from the topic that Oleg shared to build a report.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests