Get-VBRRestorePoint and HasSql and HasOracle

PowerShell script exchange

Get-VBRRestorePoint and HasSql and HasOracle

Veeam Logoby Leahcim » Tue Feb 07, 2017 10:55 am

Hi @all,
over the command Get-VBRRestorePoint I become a list with all stored Jobs with different values. Can every one give me the complete command that I only see the Jobs which have the values HasSql or HasOracle = true. I Need a list where I see only the SQL and Oracle backups. Can everyoune help me ?


Thanks
Michael
Leahcim
Influencer
 
Posts: 12
Liked: never
Joined: Tue Feb 07, 2017 10:31 am
Full Name: Michael fenske

Re: Get-VBRRestorePoint and HasSql and HasOracle

Veeam Logoby v.Eremin » Tue Feb 07, 2017 11:21 am

The following example might answer your requirements:

Code: Select all
Asnp VeeamPSSnapin
Get-VBRRestorePoint | where {$_.HasOracle -eq $True -or $_.HasSQL -eq $True} | select {$_.FindSourceJob().name} -Unique

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