PowerShell script exchange
Post Reply
andreytellot
Lurker
Posts: 2
Liked: never
Joined: Apr 09, 2022 7:18 pm
Full Name: Andrey Felipe Tello Tello
Contact:

Get-VBRBackup no output

Post by andreytellot »

Hello, I have a problem, I am trying to use Get-VBRBackup to get the BackupSize of some Jobs, however, when I run it, it does not show anything:

Code: Select all

PS C:\Users\Administrator> asnp VeeamPSSnapin
PS C:\Users\Administrator> Get-VBRBackup
PS C:\Users\Administrator>
I ran this same command on another server with the same version of Veeam and the same type of license and it works there and shows information.

Maybe it's because of the type of Jobs? (I think it should show them all regardless), do you know what could cause this or do you know of any alternatives? My jobs copy Files and Folders and I need to get the Backup Size variable from PowerShell
jorgedlcruz
Veeam Software
Posts: 1493
Liked: 655 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: Get-VBRBackup no output

Post by jorgedlcruz »

Good morning Andrey,
Would you mind telling us a bit more about all the steps you are following, are you already connected to the VBR with: I guess yes if not, you would have other errors.

It is interesting, I have tried it in my lab and I see the same as you, according to the documentation: It does support File Copy Jobs, so no reason why this is not working. Would you mind confirming your VBR version? I will pass it to QA to see if this is a bug, or not.

Best regards
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get-VBRBackup no output

Post by david.domask »

Hi all,

Er, maybe I'm being practical, but why should a File Copy job be returned by Get-VBRBackup when it produces no backups?

@andreytellot, can you clarify, you mean that you have a File Copy job?

Or you're using NAS Backup?

For the latter, use Get-VBRNASBackup to retrieve information, but the file sizes aren't exactly reported by this. Oleg wrote some code here to simulate though if you are trying to track NASBackup: post429237.html#p429237
David Domask | Product Management: Principal Analyst
andreytellot
Lurker
Posts: 2
Liked: never
Joined: Apr 09, 2022 7:18 pm
Full Name: Andrey Felipe Tello Tello
Contact:

Re: Get-VBRBackup no output

Post by andreytellot »

Hi, thanks for the help! they are NAS backups, this is one:

Code: Select all

PS C:\Users\Administrator> Get-VBRJob -Name BK_MONTHLY_temp


LogNameMainPart              : BK_MONTHLY_temp
FreeBackupImpl               :
IsFree                       : False
UserCryptoKey                :
Uid                          : ########
Id                           : #########
Info                         : Veeam.Backup.Model.CDbBackupJobInfo
JobType                      : NasBackup
SourceType                   : Files
JobTargetType                : NasBackup
TargetType                   : ObjectBackup
TypeToString                 : File Backup
Description                  : Backup Mensual
Name                         : BK_MONTHLY_temp

Job Type:

Code: Select all

JobType                      : NasBackup
However, when I use Get-VBRNASBackup, I can't see all the backups, just some old ones that we don't use anymore, for example, I can't see this:

Code: Select all

PS C:\Users\Administrator> Get-VBRNASBackup -Name BK_MONTHLY_temp
PS C:\Users\Administrator> Get-VBRNASBackup -Name 'BK_MONTHLY_temp'
PS C:\Users\Administrator> Get-VBRNASBackup -Name "BK_MONTHLY_temp"
PS C:\Users\Administrator>
I need to be able to obtain this "Backup Size" value from PowerShell in order to generate reports in an optimized way.:

Image
david.domask
Veeam Software
Posts: 2123
Liked: 513 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get-VBRBackup no output

Post by david.domask »

Hi Andrey,

If possible, can you please open a support case and share a copy of the Veeam Configuration Database for review? https://www.veeam.com/kb1471. Please mention which jobs you are not seeing in the output that you expect to.

Basically, the cmdlet should return all the backups, so it's worth checking what is happening, and best way is for Support Engineers to check in lab.

Please post the case once you've opened it and attached the DB.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests