. . . . .
A P P E N D I X A
Metadata and Database Backup
MAXPRO NVR 3.1 Operator’s Guide
229
set INSTANCENAME=%%b
)
call:trimSpaces INSTANCENAME
for /f "tokens=2* skip=1" %%a in ('reg query %DatabaseKey% /v %value2%') do (
set MACHINENAME=%%b
)
call:trimSpaces MACHINENAME
for /f "tokens=2* skip=1" %%a in ('reg query %ServerKey% /v %value%') do (
set NVRSERVER=%%b
)
call:trimSpaces NVRSERVER
for /f "tokens=2* skip=1" %%a in ('reg query %MetaKey% /v %value3%') do (
set MetaPath=%%b
)
call:trimSpaces MetaPath
set METADATADIR=%BackupMetaDataDrive%\Trinity_Backup\REIPEngineMetaData
set
MetadataBackupFolder=%BackupMetaDataDrive%\Trinity_Backup\REIPEngineMetaDat
aBackUp
set DatabaseFolder=%BackupDBDrive%\Trinity_Backup\Database
echo %METADATADIR%
echo %DatabaseFolder%
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y
Date /t >> %CURRENT_PATH%Bkp_Log.txt
time /t >> %CURRENT_PATH%Bkp_Log.txt
echo ********************************************************************* >>
%CURRENT_PATH%Bkp_Log.txt
echo Backing up MAXPRONVR Metadata Directory...
echo Backing up MAXPRONVR Metadata Directory... >>
%CURRENT_PATH%Bkp_Log.txt
echo ********************************************************************* >>
%CURRENT_PATH%Bkp_Log.txt
%backupcmd% "%MetaPath%\REIPEngineMetaData" "%METADATADIR%" >>
%CURRENT_PATH%Bkp_Log.txt
%backupcmd% "%MetaPath%\REIPEngineMetaDataBackup"
"%MetadataBackupFolder%" >> %CURRENT_PATH%Bkp_Log.txt
echo ********************************************************************* >>
%CURRENT_PATH%Bkp_Log.txt
echo Backing up Trinity Database...
echo Backing up Trinity Database... >> %CURRENT_PATH%Bkp_Log.txt
echo ********************************************************************* >>
%CURRENT_PATH%Bkp_Log.txt
mkdir %DatabaseFolder%
set DATESTAMP=%DATE:~-
4%_%DATE:~7,2%_%DATE:~4,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%
Summary of Contents for MAXPRO
Page 1: ...Document 800 16422V1 Rev E 8 2014 MAXPRO NVR 3 1 Operator s Guide ...
Page 2: ...This page is intentionally left blank ...
Page 4: ...This page is intentionally left blank ...
Page 15: ...Index 249 ...
Page 16: ...This page is Intentionally left blank ...
Page 20: ...This page is Intentionally left blank ...
Page 254: ...I N D E X 254 MAXPRO NVR 3 1 Operator s Guide This page is intentionally left blank ...
Page 255: ......