Current operation of a backup job

PowerShell script exchange

Current operation of a backup job

Veeam Logoby pizzim13 » Tue May 15, 2012 6:48 pm

In Veeam 5 I was able to retrieve the current backup operation of a running job by
Code: Select all
(Get-VBRJob | Where-Object {$_.getlaststate() -eq "Working"}).findlastsession().info.operation

This would return "Processing object 'VM-Test-01'", for example. In Veeam 6, what looks like the same propery
Code: Select all
(Get-VBRJob | Where-Object {$_.getlaststate() -eq "Working"}).findlastsession().operation
doesn't return anything.
Is this information available another way?
pizzim13
Enthusiast
 
Posts: 87
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm

Re: Current operation of a backup job

Veeam Logoby Sethbartlett » Thu May 17, 2012 6:37 pm 2 people like this post

If you do:
Code: Select all
(Get-VBRJob | ?{$_.GetLastState() -eq "Working"}).FindLastSession().Logger.GetLog().UpdatedRecords

You will get some XML data about what is going on.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Sethbartlett
Expert
 
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Re: Current operation of a backup job

Veeam Logoby pizzim13 » Fri May 18, 2012 2:19 pm

Just what I was looking for. Thanks Seth.
pizzim13
Enthusiast
 
Posts: 87
Liked: 6 times
Joined: Thu Apr 21, 2011 7:37 pm


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests