Hello all,
I'm having real trouble figuring out how to restore an SQL backup from one server to another SQL server (with a named instance) using Azure Backup Server.
I am able to
$PGroup = Get-DPMProtectionGroup -DPMServerName "DPM SERVER"
$PObjects = Get-DPMDatasource -ProtectionGroup $PGroup[0] | Where-Object {$_.Name -eq 'DBNAME'}
$RPoint = Get-DPMRecoveryPoint -Datasource $PObjects[0] | Sort -Property RepresentedPointInTime -Descending | Select-Object -First 1
I get stuck on this line
$ROption = New-DPMRecoveryOption
Can someone help me figure out how to put this line together with the following variables?
SQL1 = Original SQL Server
SQL2 = New SQL Server for restore
INSTANCE = Instance name on SQL2 (i.e. SQL2\INSTANCE)
I want to restore it to the same DB name on the new server.
Thank you
M