PowerShell script exchange
Post Reply
CorruptedBackup
Influencer
Posts: 12
Liked: 1 time
Joined: Aug 03, 2023 11:03 am
Full Name: Alex Benino
Contact:

Get Backups' size from Back up to Tape job

Post by CorruptedBackup »

Hi all,

Im creating a powershell script to retrieve all the info as shown in the GUI of the Backup To Tape jobs.

I have a problem getting the info of the backups' size in the "Backups" section of the GUI.

I can get the size using the:

Code: Select all

Get-VBRRestorePoint -Backup (Get-VBRBackup -Name $bkpToTape.Object.Name)
And then calculating the sum.

But another problem arises is when in the GUI the selected job's backups includes only the latest chain of backups, not all the chains. So that means a different size than when using the

Code: Select all

Get-VBRRestorePoint
.

The problem is that the size as in the GUI cannot be retrieved directly from the object:

Code: Select all

(Get-VBRTapeJob -Name "test job").Object.Size
One can get only the Name and the Type.

Any help is appreciated, thank you :)
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get Backups' size from Back up to Tape job

Post by david.domask »

Hi @CorruptedBackup,

Just to confirm, you want the total size of the objects added to a tape job, or the total size of all backups currently written to tape?
David Domask | Product Management: Principal Analyst
CorruptedBackup
Influencer
Posts: 12
Liked: 1 time
Joined: Aug 03, 2023 11:03 am
Full Name: Alex Benino
Contact:

Re: Get Backups' size from Back up to Tape job

Post by CorruptedBackup »

Hey @david.domask
I would like to get the size of the backups as shown in the GUI.
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Get Backups' size from Back up to Tape job

Post by david.domask » 1 person likes this post

Hi @CorruptedBackup, no, understood you want it from the UI, but from where in the UI? :)

The sum of the the value shown here in the UI: https://helpcenter.veeam.com/docs/backu ... ml?ver=120
Or the size of the backup files on the tape(s) already as from here: https://helpcenter.veeam.com/docs/backu ... ml?ver=120

???
David Domask | Product Management: Principal Analyst
CorruptedBackup
Influencer
Posts: 12
Liked: 1 time
Joined: Aug 03, 2023 11:03 am
Full Name: Alex Benino
Contact:

Re: Get Backups' size from Back up to Tape job

Post by CorruptedBackup »

Hi David,

as show in the first link you sent:
Image

you see the backup: File Server Backup Job

using powershell I can get the backup's Name and Type but not the size (13.1 GB as shown), which is what i need.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests