Skip to content

Instantly share code, notes, and snippets.

@mdjx
Last active March 23, 2020 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdjx/2822c26977dea24d0baa3aaf7744c177 to your computer and use it in GitHub Desktop.
Save mdjx/2822c26977dea24d0baa3aaf7744c177 to your computer and use it in GitHub Desktop.
Output Veeam Jobs with target repository and total backup size per job
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