Hi,
We have a SQL system which is backed up on a nightly basis and i'm trying to make a script which will use the omnir command to restore this backup to another SQL host. The destination host is running a different named instance of SQL and the paths for the files are also different.
The current command i've built looks like this:
omnir -mssql -barhost sql-source.contoso.com -destination sql-dest.contoso.com -destinstance SQL2008R2 -base Logihold -replace -file LogiholdDotNet "D:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2008R2\MSSQL\DATA\Logihold_Data.mdf" -file LogiholdDotNet_log "E:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2008R2\MSSQL\DATA\Logihold_log.ldf" -file ftrow_LogiholdDotNetFT "D:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2008R2\MSSQL\DATA\Logihold_ftrow.ndf" -file SerticaDocumentFileStream "D:\Program Files\Microsoft SQL Server\MSSQL10_50.SQL2008R2\MSSQL\DATA\Logihold_FileStream" -session 2014/03/25-0524
Unfortunately running this command results in the following error:
[Critical] From: OB2BAR_SQLBAR@sql-dest.contoso.com "SQL2008R2" Time: 2
7-03-2014 10:16:40
There are no objects in the Data Protector Internal Database for object
'Logihold'.
I've used the omnidb command to verify the object name and it is correct. We also test restored to another location with no issues and right now it's looking like the issue is to do with us restoring to a named instance which differs from the original location. Surely this isn't the case?
Can anyone make any suggestions on this one please?
Many thanks
Pete