

Overview

NOTE: Scripts require modification for your environment

Windows NT Command Line Scripts:
SNAPCOPY.CMD is used to schedule a snapshot creation.
LOGTEST.CMD is used to verify the database log file signatures and paths to the database.
SNAPREC.CMD is used to REMAP the PARENT database to the SNAPSHOT and run the recovery process.
SNAPREST.CMD is used to copy the SNAPSHOT back to the PARENT and restore to normal operations.  

	Requires: Exchange 5.5 (Service Pack 2 or greater),
		  StorageWorks Virtual Replicator,			
		  CPQLE.EXE,CPQLEMESS.DLL,ESEUTIL.EXE,CHECKDB.EXE 
		 
		  CPQLE, CPQLEMESS, CHECKDB are provide with the SWVR scripts.		
		
		  ESEFILE and ESEUTIL are available from Microsoft.  ESEFILE is availble 
		  with Exchange Server 5.5 SP3.


Installation
Copy all *.exe files and *.cmd files to a directory that is in the system PATH such as <system root>\system32

Start the SCHEDULE Service with Administrative rights (log on as a service, Exchange Server Container permission)    
Go to Control Panel/Services
Highlight the SCHEDULE service.
STARTUP set to AUTOMATIC
LOG ON as THIS ACCOUNT
Enter or browse for the Account with Administrative permissions
Enter password and start the SCHEDULE service

Use WINAT or the  AT command to schedule the SNAPCOPY.CMD to run as required.

C:\>at
Status ID   Day                     Time          Command Line
-----------------------------------------------------------------------
        0   Each M T W Th F S Su    2:00 AM       snapcopy.cmd


Normal Operation

 Online Full Backup of Exchange Server 
 Schedule SNAPCOPY.CMD to run after completing an online backup
 	Stop the Exchange Information Store and dependencies
   	Create the new snapshot of the database files 
 	Start the Exchange Information Store and dependencies
 	Map a drive letter for the new snapshot
 	Determine and store last consistent transaction log



Recover - to SNAPSHOT
 NOTE: LOGTEST verification is included in SNAPREC.CMD script.
 	Optionally: Run LOGTEST.CMD to verify the log files prior to SNAPREC.CMD	
	Verify the output before continuing

 Run SNAPREC.CMD	
	Integrity check the snapshot
	Information Store Transaction Log Verification
 	Stop the Exchange Information Store and dependencies
	Verify the output before continuing (same output as LOGTEST.CMD) 	
	Map the snapshot to the virtual disk/parent drive letter
 	Rename or Delete the MDBDATA checkpoint file 
 	Run ISINTEG -PATCH 
 	Start the Exchange Information Store and dependencies



Restore - FROM SNAPSHOT to PARENT

 Online Full Backup of Exchange Server
 Run SNAPREST.CMD
	Stop the Exchange Information Store and dependencies
 	Unmap SNAPSHOT and PARENT
 	REMAP PARENT as PRIMARY Database
 	REMAP SNAPSHOT as SNAPSHOT Database
 	SCOPY or file copy SNAPSHOT TO PARENT
 	Rename or Delete the MDBDATA checkpoint file 
 	Run ISINTEG -PATCH 
 	Start the Exchange Information Store and dependencies
	 
