HP Data Protector 6.2 software integration with HP 3PAR Storage System
49
Script used for manual MS SQL database restore
The following is the script used for the manual MS SQL database restore:
C:\>type "C:\Program Files\OmniBack\bin\SQL_man_restore.bat"
@echo off
echo delete this file as soon as restore finished > c:\deleteWhenFinished.txt
echo Executing vss manual restore
echo =======================================================================
echo Please start restore of SQL server files now!
echo Delete file C:\deleteWhenFinished.txt
echo on machine %COMPUTERNAME%
echo as soon as restore finishes!
echo =======================================================================
:loop
if EXIST C:\deleteWhenFinished.txt goto loop
echo ==============================================
echo C:\deleteWhenFinished.txt deleted, continuing.
echo ==============================================
C:\>