Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9920

PowerShell • Re: From Restore Point to Backup Session First Run Start Time

$
0
0
Hi Oleg, thank you for your response. I moved on a little since yesterday. For v11 I group restore points by:

Code:

$<RestorePoint>.GetPoint().CreationTime
This works very well for v11 restore points created by backup jobs and backup copy jobs since it returns a "first job run" creation time.
For v12 backup jobs I figured out I can use:

Code:

(Get-VBRSession -Id $<RestorePoint>.JobRunId).CreationTime
This also returns a "first job run" creation time. Now I'm looking into v12 backup copy jobs. They run worker jobs for each source backup job in parallel. What I can get is a list of all worker backup copy jobs but what I need is the parent backup copy job that started them. I think I discovered a bug:

Code:

Get-VBRSession -Job (Get-VBRJob -Name "A Backup Copy Job")
... returns just the last backup copy job session, I expect it should return all of them. Then I could probably use a creation time from this session object.
I know I'm just tinkering around but you have means to show me the official way.

Statistics: Posted by GregorS — Aug 29, 2024 12:43 pm



Viewing all articles
Browse latest Browse all 9920

Latest Images

Trending Articles



Latest Images