Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9954

PowerShell • Re: Powershell script showing all Veeam backup files in Azure

$
0
0
Hi tom.bazan,

This information is recorded on COib objects returned by Get-VBRRestorePoint in v13. An example script:

Code:

$repo = Get-VBRBackupRepository -Name "dd-azure-immut" #replace with your immutable repository name$backupsInRepo = Get-VBRBackup | Where-Object {$_.RepositoryId -eq $repo.id}$reportBackups = @()Foreach($b in $backupsInRepo){$restorePoints = Get-VBRRestorePoint -Backup $b | Sort -Property ObjectID, CreationTime $jobSourceType = $b.TypeToStringForeach($r in $restorePoints){If($r.IsFull){$type = "Full"} else {$type = "Increment"}$immutableUntilUTC = $r.ImmutableTillUtc$data = [PSCustomObject]@{BackupType = $jobSourceTypeWorkloadName = $r.nameRestorePointId = $r.idType = $typeCreationTimeUTC = $r.CreationTime.ToUniversalTime()ImmutableTillUtc = $immutableUntilUTC}$reportBackups += $dataRemove-Variable data}}
You can then export $reportBackups via Export-Csv.

Regrettably, v12 and earlier do not record the immutable information anymore in a reliable way so above script is for v13 and newer only.

Example output of above:

Code:

PS C:\> $reportBackupsBackupType       : VMware BackupWorkloadName     : dd-tinyvm2_restored_em-testRestorePointId   : 001a793a-ba9f-4e13-b246-e9c7e5c7fcdeType             : FullCreationTimeUTC  : 2025-10-02 8:57:00ImmutableTillUtc : 2025-11-11 8:56:10BackupType       : VMware BackupWorkloadName     : dd-tinyvm2_restored_em-testRestorePointId   : c0f93ddd-4fae-4ca7-8b3e-d841d6c0b028Type             : IncrementCreationTimeUTC  : 2025-10-02 9:03:52ImmutableTillUtc : 2025-11-11 8:56:10BackupType       : VMware BackupWorkloadName     : dd-tinyvm_restoredRestorePointId   : ea571cc7-9e87-4ad5-b330-9f882e1d1ee3Type             : FullCreationTimeUTC  : 2025-10-02 8:57:00ImmutableTillUtc : 2025-11-11 8:56:10BackupType       : VMware BackupWorkloadName     : dd-tinyvm_restoredRestorePointId   : c4274980-ba0a-4b5a-865e-a51bd8d02e4cType             : IncrementCreationTimeUTC  : 2025-10-02 9:03:52ImmutableTillUtc : 2025-11-11 8:56:10

Statistics: Posted by david.domask — Oct 02, 2025 9:44 am



Viewing all articles
Browse latest Browse all 9954

Latest Images

Trending Articles



Latest Images