is there a possibility to get the parent backup job by restore point id?
I have following problem:
I need a script to automatically restore a database from production system to a QA or Test server. Therefore before I can start I must find a proper restore point in productive backup.
Code: Select all
$Bkups = Get-VBRApplicationRestorePoint -Name "icdbc01q"
now do some filter actions to get a RP from e.g. 1 day old backup
Code: Select all
$Bkups | where {$_.CreationTime -ge (get-date).AddDays(-1) -and ($_.CreationTime -le (get-date).AddDays(0))}
Code: Select all
IsExchange : False
IsActiveDirectory : False
IsSharePoint : False
IsSQL : True
IsOracle : False
CreationTime : 16.04.2018 18:06:53
Type : Increment
IsIndexed : False
IsCorrupted : False
Name : ISDBC01Q
Id : d590c96c-f05f-44ef-9d47-06058c2d6400
IsExchange : False
IsActiveDirectory : False
IsSharePoint : False
IsSQL : True
IsOracle : False
CreationTime : 16.04.2018 18:06:53
Type : Increment
IsIndexed : False
IsCorrupted : False
Name : ISDBC01Q
Id : 4f8b4057-0ddf-43e8-8d76-d79f259b6949
Because of the fact this two RPs are located on two different Datacenters it's a latency and throughput thing I want to choose the RP which is nearest to my restore location.
But with resulting data it seems impossible to me to figure out which RP is Backup and which is Backup-Copy
Does anyone have any ideas?