PowerShell script exchange
Post Reply
tx.fz
Novice
Posts: 7
Liked: never
Joined: Jul 30, 2020 2:12 pm
Contact:

Get-VBRBackup returns nothing (community edition)

Post by tx.fz »

I have a number of VeeamZIP jobs listed in my VBR console under Backups - Disk, however none of these are listed using Get-VBRBackup. I am however able to remove them using Remove-VBRBackup, providing the exact name. Is this the intended behaviour?
Andreas Neufert
VP, Product Management
Posts: 7081
Liked: 1511 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Get-VBRBackup returns nothing (community edition)

Post by Andreas Neufert »

I think you can try:

Code: Select all

asnp VeeamPSSnapin
[Veeam.backup.Core.cbackup]::GetAll() | where {$_.JobTargetType -eq "Veeamzip"}
tx.fz
Novice
Posts: 7
Liked: never
Joined: Jul 30, 2020 2:12 pm
Contact:

Re: Get-VBRBackup returns nothing (community edition)

Post by tx.fz »

That still seems to return a lot of jobs that's since been deleted. (ie not listed in the console) I will see if I can't filter it down further, though, and maybe take a look at the other methods in that class. Thanks for the pointer!
jhoughes
Veeam Vanguard
Posts: 282
Liked: 113 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Get-VBRBackup returns nothing (community edition)

Post by jhoughes »

It will return all backups of that type that exist in the database. Those details are not purged when the backup itself is deleted.

Hope that helps to explain why.
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests