Platform SDK: Exchange Server

Backup File Locations

The following is a list of example locations for files used in the backup and restore procedures. They are not default directories, but rather a set of four example directories that an administrator could set on the server object using the Microsoft Exchange Administrator program. They are used in some of the preceding procedures that describe how to back up and restore data.

The string at the beginning of each line corresponds to a file type defined in the EDBBCLI.H file.

Example: At backup time, the HrBackupGetDatabaseNames function returns:

BFT_MDB_PRIVATE_DATABASE\\SERVER1\MDBDATA\PRIV\PRIV.EDB\0

BFT_MDB_PUBLIC_DATABASE\\SERVER1\MDBDATA\PUB\PUB.EDB\0\0

Example: The HrBackupGetBackupLogs function returns:

BFT_LOG\\SERVER1\MDBDATA\LOGS\EDB00001.LOG\0

BFT_LOG\\SERVER1\MDBDATA\LOGS\EDB00002.LOG\0

BFT_PATCH_FILE\\SERVER1\MDBDATA\WORKING\PUB.PAT\0\0

Example: At restore time, the HrRestoreGetDatabaseLocations function returns,:

BFT_CHECKPOINT_DIR\\SERVER2\MDBDATA\WORK\0

BFT_LOG_DIR\\SERVER2\MDBDATA\TRAN_LOGS\0

BFT_MDB_PRIVATE_DATABASE\\SERVER2\MDBDATA\PRIVATE\0

BFT_MDB_PUBLIC_DATABASE\\SERVER2\MDBDATA\PUBLIC\0\0

In this example, five files were backed up. Based on the return values of HrRestoreGetDatabaseLocations, they should be restored as follows:

File Restore to
PRIV.EDB \\SERVER2\MDBDATA\PRIVATE
PUB.EDB \\SERVER2\MDBDATA\PUBLIC
EDB00001.LOG \\SERVER2\MDBDATA\TRAN_LOGS
EDB00002.LOG \\SERVER2\MDBDATA\TRAN_LOGS
PUB.PAT \\SERVER2\MDBDATA\TRAN_LOGS

You must also provide the path preceded by the BFT_CHECKPOINT_DIR token to the HrRestoreRegister function, even though you will never have to directly restore any files to this path.