PowerShell script exchange
Post Reply
bjdboyer
Service Provider
Posts: 60
Liked: 3 times
Joined: Nov 16, 2015 5:52 pm
Full Name: Bill Boyer
Contact:

Script to show SOBR space usage for a job

Post by bjdboyer »

Is there a (quick?) script that I could run to show how much disk space a particular job is using in total across all the extents in a SOBR repository? for a non-SOBR I could just look at the directory property in Windows but SOBR it could be scattered across multiple extents in the SOBR with per-VM configuration setting.

TIA,
Bill
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to show SOBR space usage for a job

Post by veremin »

I don't have SOBR at hand, but you can try the following example:

Code: Select all

Asnp VeeamPSSnapin
#$Job = Get-VBRJob -name "Name of your Job"
$Backup = [Veeam.Backup.Core.CBackup]::GetAllByJob($Job.Id)
[math]::Round(($Backup.GetAllStorages().Stats.BackupSize | Measure-Object -sum).Sum/1gb,1)
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests