PowerShell script exchange
Post Reply
stevenfoo
Expert
Posts: 116
Liked: 3 times
Joined: Jun 26, 2009 3:11 am
Full Name: Steven Foo
Contact:

Powershell command to get File Share backup session

Post by stevenfoo »

Hi,

1) We would like to know which command actually provide us with the session of the File Share backup?
There is only Get-VBRNASBackupJob. There is nothing like Get-VBRNASBackupJobSession.

2) For the VBRJobType below is the list, how about NAS?
Backup
BackupSync
BackupToTape
ConfigurationBackup
EndpointBackup
FileToTape
Natalia Lupacheva
Veteran
Posts: 1143
Liked: 302 times
Joined: Apr 27, 2020 12:46 pm
Full Name: Natalia Lupacheva
Contact:

Re: Powershell command to get File Share backup session

Post by Natalia Lupacheva »

Hi Steven,

Does Get-VBRNASBackupFLRSession solve your issue?

Thanks!
stevenfoo
Expert
Posts: 116
Liked: 3 times
Joined: Jun 26, 2009 3:11 am
Full Name: Steven Foo
Contact:

Re: Powershell command to get File Share backup session

Post by stevenfoo »

Nope it does not work. It is for listing the restore session.
Natalia Lupacheva
Veteran
Posts: 1143
Liked: 302 times
Joined: Apr 27, 2020 12:46 pm
Full Name: Natalia Lupacheva
Contact:

Re: Powershell command to get File Share backup session

Post by Natalia Lupacheva »

Steven,

Sorry, my bad. Did you try the methods from this thread?

Thanks!
stevenfoo
Expert
Posts: 116
Liked: 3 times
Joined: Jun 26, 2009 3:11 am
Full Name: Steven Foo
Contact:

Re: Powershell command to get File Share backup session

Post by stevenfoo » 1 person likes this post

Thank you for the tips. I managed to get the wording NASBackup which I wanted that is missing from the Veeam documentation.

I am not sure how to get that it.

Anyway is there a way we can list out all the JobType using powershell?

Backup
BackupSync
BackupToTape
ConfigurationBackup
EndpointBackup
FileToTape
NASBackup
Tape* (all those start with Tape*)
???
???
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Powershell command to get File Share backup session

Post by oleg.feoktistov »

Hi Steven,

Job types are kept in Veeam.Backup.Model.EDbJobType enum. So to list all of them you would need to invoke the following method:

Code: Select all

[Veeam.Backup.Model.EDbJobType].GetEnumValues()
Also, a small hint - if you want to know what is the type and location of a property, you can just invoke GetType().FullName on it.
For instance, like this I would research the location of JobType property in session object:

Code: Select all

$session = Get-VBRBackupSession -Name 'NAS Backup Job' | select -Last 1
$session.JobType.GetType().FullName
As for a separate cmdlet for NAS Backup sessions, we also felt the need for this one due to the progress info, which is peculiar to NAS.
So, we are planning to implement it in vNext.

Thanks,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests