PowerShell script exchange
Post Reply
kro
Lurker
Posts: 1
Liked: never
Joined: Sep 28, 2023 12:18 pm
Contact:

Frontend Capacity Utilization for Agents

Post by kro »

Hi there,

I would like to use a PowerShell script to query the actual amount of data being backed up by an agent. So not the size of the disk being backed up, but the capacity being used.
For example: If the agent is backing up a 2TB hard drive, but it is only filled with 500GB, I would like to get the 500GB.

For VMs, I could use the Get-VBRJobObject -Job "job name" function to get an approximate size. When I query agents at this point, I always get 0 as an approximation.
Is anything like this possible for agents? I would appreciate any advice or tips on how to implement this in PowerShell.

Thanks in advance.
oleg.feoktistov
Veeam Software
Posts: 2015
Liked: 671 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Frontend Capacity Utilization for Agents

Post by oleg.feoktistov »

Hi,

We don't pull such an info for agent in the context of job objects, but you can try approaching it from backup properties angle. For example:

Code: Select all

$backup = Get-VBRBackup -Name 'Agent Backup Job 2'
$rps = Get-VBRRestorePoint -Backup $backup
$rps[0].ApproxSize
Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 13 guests