Last active
March 23, 2020 03:00
-
-
Save mdjx/2822c26977dea24d0baa3aaf7744c177 to your computer and use it in GitHub Desktop.
Output Veeam Jobs with target repository and total backup size per job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-VBRJob | select Name, @{N="Repository";E={$_.GetTargetRepository().Name}}, @{N="TotalSize"; E={[Math]::Round(((Get-VBRBackup -Name $_.Name | Sort-Object {$_.LastPointCreationTime -As [DateTime]} -Descending | Select -First 1).GetAllStorages().Stats.BackupSize | Measure-Object -Sum).Sum / 1Gb,2)}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment