PowerShell script exchange
Post Reply
rubencastello90
Lurker
Posts: 2
Liked: never
Joined: Aug 31, 2021 9:43 pm
Full Name: Ruben Castello
Contact:

[ID: #02244390] Get-VBRBackupSession not working for Backup Copy Jobs

Post by rubencastello90 »

CASE ID: #02244390
Hello,

Trying to get from powershell Backup Copy Sessions status, but output is always empty.

I'm trying to use: Get-VBRBackupSession https://helpcenter.veeam.com/docs/backu ... ml?ver=110

And as documentation say it must work:

This cmdlet returns jobs sessions.
You can get the sessions for the following jobs:

Backup jobs
Replication jobs
File copy jobs
Backup copy jobs.


But output is always empty.

Checked it twice in 2 different servers with Backup Copy Jobs with Veeam V11 up-to-date and it's not working.

Looks like a bug?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: [ID: #02244390] Get-VBRBackupSession not working for Backup Copy Jobs

Post by oleg.feoktistov »

Hi Ruben,

Do the backup copy jobs you are trying to retrieve sessions for happen to be of immediate mode? If they do, this is a known limitation, which we are planning to fix in the next minor release. For now you can retrieve such sessions with .NET methods. However, be aware that backup copy with immediate mode has different architecture: it uses parent session for a job for initialization and info consolidation for the last 24 hours, and child sessions for job workers for actual sessions, which you are used to see in the UI. So, to look for the info on actual job runs, you would need to obtain job workers first and then seek for the sessions for each job worker. I described this workaround with the working code snippet here.

Please do let me know if you were referring to backup copy jobs with periodic mode instead. In this case, this is not known and requires further investigation.

Thanks,
Oleg
rubencastello90
Lurker
Posts: 2
Liked: never
Joined: Aug 31, 2021 9:43 pm
Full Name: Ruben Castello
Contact:

Re: [ID: #02244390] Get-VBRBackupSession not working for Backup Copy Jobs

Post by rubencastello90 »

Thanks for sharing. It mas Immediate mode.
siranee.ja
Enthusiast
Posts: 27
Liked: 5 times
Joined: Mar 11, 2019 1:13 am
Contact:

Re: [ID: #02244390] Get-VBRBackupSession not working for Backup Copy Jobs

Post by siranee.ja »

Hi All,
I am on veeam version 12.1 , I have problem with "Get-VBRBackupSession not working for Backup Copy Jobs".
I want to get the history of backup copy job ( periodic copy) at specifice datetime.
when I used veeam version 11 , I could use "Get-VBRBackupSession" to do this task but not work anymore on version 12
Please help me.

Best Regards,
Siranee
siranee.ja
Enthusiast
Posts: 27
Liked: 5 times
Joined: Mar 11, 2019 1:13 am
Contact:

Re: [ID: #02244390] Get-VBRBackupSession not working for Backup Copy Jobs

Post by siranee.ja »

Hi All,
Finally, I got the answer.
powershell-f26/backup-copy-job-id-does- ... 86041.html

Best Regards,
Siranee
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests