PowerShell script exchange
Post Reply
tx.fz
Lurker
Posts: 2
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: 4688
Liked: 904 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
Lurker
Posts: 2
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 Software
Posts: 225
Liked: 78 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
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 Extraordinaire | @AustinVMUG & @ATXPowerShell leader | VMUG US South Regional Champion | VMware vExpert | Cisco Champion

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests