-
- 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
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
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
-
- Veteran
- Posts: 1143
- Liked: 302 times
- Joined: Apr 27, 2020 12:46 pm
- Full Name: Natalia Lupacheva
- Contact:
-
- 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
Nope it does not work. It is for listing the restore session.
-
- Veteran
- Posts: 1143
- Liked: 302 times
- Joined: Apr 27, 2020 12:46 pm
- Full Name: Natalia Lupacheva
- Contact:
-
- 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
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*)
???
???
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*)
???
???
-
- 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
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:
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:
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
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()
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
So, we are planning to implement it in vNext.
Thanks,
Oleg
Who is online
Users browsing this forum: No registered users and 5 guests