Skip to content

Instantly share code, notes, and snippets.

@benyoungnz
Created July 13, 2021 02:40
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 benyoungnz/1e2f719e523141f8f067573898443824 to your computer and use it in GitHub Desktop.
Save benyoungnz/1e2f719e523141f8f067573898443824 to your computer and use it in GitHub Desktop.
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