An archive of the last two full dumps and any log dumps adjunct to the database dumps is maintained on both the target and the source systems. In the event that the servers cannot communicate, this will leave each with a stand alone recovery path. The usability of each dump is proven on the target system. (Many forward recovery and disaster recovery plans omit a verification of dumps as part of the normal process!) To conserve network bandwidth, database dumps are zipped before transfer and held in archive as a zip file. A script that will forward recover from the last full dump through all subsequent log dumps is available as forward_recovey. Should the most recent recovery path prove unusable, a script to restore the prior full dump and all associated log dumps, rollback_recovery, can be executed.
SQL Mail needs to be correctly configured for use by the stored procedures in admin. One method of installing SQL Mail that works is at Michael Culver's web site and at Stephen Wynkoop's site. There is also a troubleshooter on Microsoft's site, and some info in the Microsoft KB.
This process is implemented using PKZIP 2.04. This version of PKZIP supports command line zip and unzip operations. Versions or products that don't work from the command line won’t work from xp_cmdshell (duh). Contention for the zip exe’s has been a problem. For this reason, a private copy of the utility is made available for each database. That's the main reason pkzip 2.04 is preferred. The executables are quite small (pkzip 17k, pkunzip 42k) compared to later DOS versions (pkzip25 332k).
All databases that will implement the logSync stored procedure must have their log on it’s own device. The SQL Server DUMP TRAN and LOAD TRAN statements are the reason for this requirement. By the same token, the source and target databases need to be exact duplicates according to sp_helpdb <database_name> to avoid internal issues with the DUMP and LOAD commands.
The user that logs on to the SQL Server running admin must have full privileges on all directories involved in the process (i.e., source server, target server, log_manager server).
The top level of the archive directories must be established before running the stored procedures.
Schedule all dbSync and logSync tasks in the MS SQL Server Enterprise Manager.
Coordinate the log management schedule with database maintenance tasks.
Always keep the target database options set as follows:
The archive architecture consists of a directory hierarchy with a sub folder for each database for which a hot site is being kept. Each database folder in turn has an archive subfolder.
An examination of the directory structure will help to illustrate
the archive.
H:\backup>tree
Directory PATH listing for volume SQL-RAID5 #1
H:
_historical
|    |______archive
|
|_bwtest
|    |______archive
|
|_master
|    |______archive
|
|_control
|    |______archive
|
|_prod
|    |______archive
|
|_users
     |______archive
Looking inside a databases folder:
H:\backup\bwtest>tree /F
Directory PATH listing for volume SQL-RAID5 #1
H:
|_bwtedump.DAT
|    |________PKUNZIP.EXE
|    |________PKZIP.EXE
|    |________unzipdmp.bat
|    |________zipdump.bat
|    |
|    |_archive
         |________BWTEDUMP.ZIP
         |________BWTEDUMP.zzz
This document will be updated as time permits. It is not complete. (duh) If you have any specific questions, feel free to contact me by email.