Checking open session guest files restore

PowerShell script exchange

Checking open session guest files restore

Veeam Logoby MonahovAA » Wed Feb 03, 2016 10:01 am

Good afternoon.

We have a problem with backup job because often dont close session "guest files restore".
So we want script which can check open session and send about this e-mail before start backup job.
Thanks.
MonahovAA
Lurker
 
Posts: 1
Liked: never
Joined: Mon Aug 05, 2013 9:28 am
Full Name: Alex Monahov

Re: Checking open session guest files restore

Veeam Logoby v.Eremin » Fri Feb 05, 2016 12:32 pm

Unfortunately, for now you cannot get FLR restore sessions via PowerShell. At least I'm not aware of a way to achieve that goal. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Checking open session guest files restore

Veeam Logoby tsightler » Fri Feb 05, 2016 6:26 pm

Hmm, I have a few ideas about this but I need to go prove them out first.
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Checking open session guest files restore

Veeam Logoby tsightler » Sun Feb 07, 2016 7:18 pm

With v9 (and I think v8 as well) the following should return the active File/Application level restore sessions:
Code: Select all
Get-VBRRestoreSession | ?{$_.JobType -like "*LevelRestore" -and $_.State -eq "Working"}

The job types are:
FileLevelRestore
LinuxFileLevelRestore
ApplicationLevelRestore

So you can just change the -like comparison if you want to only return those session types. Then you can grab the session information and send your email.
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Checking open session guest files restore

Veeam Logoby v.Eremin » Mon Feb 08, 2016 11:09 am

It must have been added in version 8, indeed. And this fact has slipped from my mind.

I apologize for misguidance.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 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 4 guests