PowerShell script exchange
Post Reply
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Small (beauty fault)/confusion with get-backupsession

Post by woifgaung » 1 person likes this post

I found a small beauty fault respectively, I thought this is the right place to post about.

When you query backup sessions using Get-VBRBackupSession, you get an array.

Code: Select all

PS C:\Users\Administrator> $BackupSession  = Get-VBRBackupSession -Name w2016*
PS C:\Users\Administrator> $BackupSession
Job Name             State      Start Time             End Time               Result    
--------             -----      ----------             --------               ------    
w2016 (Incremental)  Stopped    23.06.2021 15:26:54    23.06.2021 15:33:11    Success   
w2016 (Full)         Stopped    23.06.2021 12:30:36    23.06.2021 12:39:05    Success   
Here, the name of the actually run backup-processes is called Job Name. In my opinion this is quite confusing, because Job Name would suggest it is the job definition. To show what I mean, the following command should help clarify:

Code: Select all

PS C:\Users\Administrator> $BackupSession | select jobname, name

JobName Name               
------- ----               
w2016   w2016 (Incremental)
w2016   w2016 (Full)       
Furthermore, parameter -name with Get-VBRBackupSession queries the Name property, not JobName property.
I would suggest to call the first shown column of Get-VBRBackupSession Name instead of Job Name.
Wolfgang | CEMEA Solutions Architect | vnote42.net
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Small (beauty fault)/confusion with get-backupsession

Post by oleg.feoktistov » 1 person likes this post

Hi Wolfgang,

Such weird formatting might look a bit confusing, indeed. I noted this topic for further internal discussions.

Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests