ProxyHost with CVSnaptool - Truncating Exchange Logs


Overview

Batch Files for Exchange Log Truncation

Configuring ProxyHost for Exchange Log Truncation

Considerations


Overview

The following section provides instructions for using CVSnaptool with a hardware snap engine and the ProxyHost iDataAgent to quiesce, unquiesce, and to eventually truncate the Exchange transaction logs. This is effected by first marking the last consistent log during the quiesce and saving that information to an ini file, which is referenced later to truncate the committed Exchange transaction logs from the quiesce time.


Batch Files for Exchange Log Truncation

A standard ProxyHost backup typically uses two batch files that perform the following functions:

With Exchange log truncation added, the batch file adds the Exchange Log truncation functionality:

Example PreScan Batch File

@REM Vars (var for ini file is mandatory, call it whatever you want)

SET CV_INI_FILE_NAME=%windir%\temp\Truncate.ini

SET GalaxyBaseDir=<install_direcory>\Base

@REM Cleanup preexisting ini file first (NEW - a safety measure to guarantee no leftover exchange info).

DEL %CV_INI_FILE_NAME%

@REM Quiesce section (Changes).

"%GalaxyBaseDir%"\Cvsnaptool.exe -x <client_name> -a ex2003 -g SG2 -o quiesce -markexchlogs -ini %CV_INI_FILE_NAME% -vm <InstanceName*> -cn <ClientName>

@REM Snap section (no change)

<HW snap creation cmd>

@REM Unquiesce section (no change)

"%GalaxyBaseDir%"\Cvsnaptool.exe -x <client_name> -a ex2003 -g SG2 -o unquiesce -vm <InstanceName*> -cn <ClientName> 

@REM Import section (no change)

<HW snap import cmd>

Example PostBackup Batch File

@REM Vars (changes)

IF '%6'=='1' GOTO BACKUP_SUCCESSFUL

net send <client_name> backup phase did not complete successfully, so I won't execute the log truncation

exit 1

:BACKUP_SUCCESSFUL

SET CV_INI_FILE_NAME=%windir%\temp\Truncate.ini SET GalaxyBaseDir=<install_direcory>\Base

@REM Destroy snap

net send <client_name> snap destroyed

@REM Truncate section (NEW).

"%GalaxyBaseDir%"\Cvsnaptool.exe -o truncateexchlogs -ini %CV_INI_FILE_NAME% -vm <InstanceName*> -cn <ClientName>

* InstanceName is the name used for a Proxy Host instance (by default it is Instance001). If multiple instances of Proxy Host are installed use the corresponding instance name, see Multi Instancing for more information.


Configuring ProxyHost for Exchange Log Truncation

Required Capability: Capabilities and Permitted Actions

To configure ProxyHost to truncate Exchange Logs:

  1. Create the PreScan and PostBackup batch files, using the example scripts above. These files must reside on the backup host or primary host.
  2. Install the ProxyHost iDataAgent on the production server, and the Windows File System iDataAgent on both the production server and backup host. Refer to Deployment - ProxyHost iDataAgent and Deployment - Windows File System iDataAgent.
  3. Configure a supported Snapshots Environment.
  4. Create a New Subclient, and configure subclient content. Click the Pre/Post Process tab of the Subclient Properties dialog box. In the PreScan field, type the path to the batch file file that contains those commands that are to run before each backup of the subclient, or click Browse to locate and select the batch file. Do the same for the PostBackup field.
  5. Perform a backup. For more information, see Backup - ProxyHost.

Additional Suggestions:


Considerations