PowerShell script exchange
Post Reply
Backup.Operator
Enthusiast
Posts: 65
Liked: 1 time
Joined: Oct 31, 2022 11:39 pm
Full Name: Backup Administrator
Contact:

List all backup job under specific Immutable Backup Repo?

Post by Backup.Operator »

How can I generate the list of all Veeam backup jobs using PowerShell under specific Immutable Backup Repo IP address or name?

Code: Select all

https://helpcenter.veeam.com/docs/backup/powershell/get-vbrjobobject.html?ver=120
:arrow: :mrgreen:
david.domask
Veeam Software
Posts: 1226
Liked: 323 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: List all backup job under specific Immutable Backup Repo?

Post by david.domask »

Hi @Backup.Operator

Easiest way is to just filter on the RepositoryID on CBackup Objects returned by Get-VBRBackupRepository.

Code: Select all

PS C:\Users\Administrator> $repo = Get-VBRBackupRepository -name 'sobr-ct-bb' -ScaleOut
PS C:\Users\Administrator> Get-VBRBackup |Where-Object {$_.RepositoryID -eq $repo.id}

Job Name                  Type            Creation Time               VM count
--------                  ----            -------------               --------
vmware-ffi-cap-bb_clone1  VMware Backup   4/5/2023 1:43:51 PM                1
ddom-tinyvm_2022-11-24... VMware Backup   11/24/2022 8:18:5...               1
vaw-vbr                   Windows Agen... 1/31/2023 12:47:5...               1
vmware-ffi-cap-bb         VMware Backup   2/1/2023 1:27:02 PM                1
vmware-ffi-cap-bb         VMware Backup   10/14/2022 6:50:4...               2
vmware-ffi-cap-bb         VMware Backup   8/29/2022 11:15:2...               1
vmware-ffi-cap-bb         VMware Backup   1/3/2023 7:59:41 PM                1
Notice in my example because my backups target a Scaleout Backup Repository (SOBR), I add the -ScaleOut flag to the Get-VBRBackupRepository cmdlet.

Will this work for you?
David Domask | Product Management: Principal Analyst
albertwt
Veteran
Posts: 880
Liked: 47 times
Joined: Nov 05, 2009 12:24 pm
Location: Sydney, NSW
Contact:

Re: List all backup job under specific Immutable Backup Repo?

Post by albertwt »

--
/* Veeam software enthusiast user & supporter ! */
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 12 guests