Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2021 02:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Veeam Dedupe and Compression Ratio from Backup Job
$jobName = "Your Backup Job"
$backup = Get-VBRBackup -Name $jobName
if ($backup) {
$backup.GetAllStorages() |
Sort-Object CreationTime -Descending |
Format-Table @{Name="VM"; Expression={$_.PartialPath.ToString().Split('.')[0]}},
# @{Name="Filename"; Expression={$_.PartialPath}}, #uncomment if you want the filename on disk.
@{Name="Data Size GB"; Expression={[math]::Round($_.Stats.DataSize/1GB, 2)}},
@{Name="Backup On Disk GB"; Expression={[math]::Round($_.Stats.BackupSize/1GB, 2)}} ,
@{Name="Dedupe"; Expression={[math]::Round(100/($_.Stats.DedupRatio), 2)}},
@{Name="Compression Ratio"; Expression={[math]::Round(100/($_.Stats.CompressRatio), 2)}},
@{Name="Created"; Expression={$_.CreationTime}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment