Created
July 13, 2021 02:40
-
-
Save benyoungnz/1e2f719e523141f8f067573898443824 to your computer and use it in GitHub Desktop.
Veeam Dedupe and Compression Ratio from Backup Job
This file contains 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
$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