Code: Select all
Get-VBRRestorePoint -Backup 'S12AUMDC01VVC01 - SQL Servers 02' | Group-Object -Property VmName | Select-Object -Property Name,@{Name='RestorePoints';Expression={$PSItem.Count}}
Code: Select all
Get-VBRRestorePoint -Backup 'S12AUMDC01VVC01 - SQL Servers 02' | Group-Object -Property VmName | Select-Object -Property Name,@{Name='RestorePoints';Expression={$PSItem.Count}}
Code: Select all
$job = "Backup Job AD"
$vm = "adalone"
$count = $(get-vbrbackup -name $job | Get-VBRRestorePoint -Name $vm | Measure-Object).Count
write-host $count
Code: Select all
$job = "Backup Job AD"
get-vbrbackup -name $job | Get-VBRRestorePoint | Group-Object -Property VmName
Code: Select all
Count Name Group
----- ---- -----
54 S12AUMDC01SQL14 {Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib...}
54 S12AUMDC01SQL11 {Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib...}
54 S12AUMDC01SQL12 {Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib...}
54 S12AUMDC01SQL02 {Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib...}
54 S12AUMDC01SQL13 {Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib, Veeam.Backup.Core.COib...}
Code: Select all
Get-VBRRestorePoint -Backup $job | Group-Object -Property VmName | % { $vmg = $_;write-host $vmg.name; $vmg.Group | Sort-Object -Property creationtime -Descending | % { write-host $_.creationtime; };write-host ""}
Users browsing this forum: No registered users and 13 guests