Request - PS to extract "merge time" from job

PowerShell script exchange

Request - PS to extract "merge time" from job

Veeam Logoby andyg » Wed Jun 22, 2016 8:15 am

We are seeing high merge time due to using Forever Forward and I want to view it for a job over a few weeks.

Is there an easy way to view how long the merge time is for a specific job over time?

Does merge time show per VM in a job if you are using per-vm backup files on the repo?
-= VMCE v9 certified =-
Service Provider
Posts: 58
Liked: 5 times
Joined: Wed Apr 23, 2014 9:51 am
Full Name: Andy Goldschmidt

Re: Request - PS to extract "merge time" from job

Veeam Logoby v.Eremin » Wed Jun 22, 2016 9:34 am 1 person likes this post

If I'm not mistaken, it should be reflected in Backup Session entity. You can query its GetLog() method and get bunch of string entities. Then, you should filter them out to get the one related to merge process.

The code should look similar to the following one:

Code: Select all
$LastSession = (Get-VBRJob -Name "Backup Job 1").FindLastSession()
$LastSession.Logger.GetLog().UpdatedRecords | where {$_.Title -eq "*Merg"} | select Title, StartTime, UpdateTime, Status

Otherwise, parse actual log file and get information directly from it.

Veeam Software
Posts: 14038
Liked: 1051 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Return to PowerShell

Who is online

Users browsing this forum: No registered users and 1 guest