Online Backup, Data Recovery and Business Continuity Services
online backup from perfectbackup limited

Online Backup for Microsoft Exchange.

 

This page will describe in detail how to configure the online backup manager to backup and restore Microsoft Exchange database.

 

Requirements

i. Microsoft Exchange Server 2000 with Services Pack 3 and post-SP3 update rollup installed. Please

refer to http://www.microsoft.com/exchange/ for more information.

ii. The online backup manager must be installed onto the computer running Microsoft Exchange Server 2000 / 2003 / 2007.

iii. Data from Microsoft Exchange Server will be backed up to a temporary directory before they are sent to Offsite Backup Server. Please make sure you have sufficient space on your computer to store these data when you run the backup job.

Overview

A Microsoft Exchange Server 2000/2003 stores its data in Windows Active Directory as well as in its databases. To fully backup a Microsoft Exchange Server 2000/2003, you need to backup the following components:

i. Windows System State

The Windows System State contains the information about your Windows system, including Windows Active Directory. A Microsoft Exchange Server 2000 / 2003 stores some of its configuration, e.g. email accounts and mailbox properties, inside Windows Active Directory. It is important that Windows Active Directory is backup properly when backing up a Microsoft Exchange Server.

Active Directory is stored inside a Windows Server running as Windows domain controller. If your Exchange Server is a domain controller, you can simply backup the Windows System State of yourExchange Server. If your Exchange Server is running as a member server, you will need to install another copy of OBM onto the domain controller to backup the Windows System State of inside the domain controller.

For more information on Active Directory, please refer to

http://www.microsoft.com/windows2000 /technologies/directory/ad/default.asp

ii. Microsoft Information Store

Exchange Server stores all emails and documents inside its databases, which are grouped together as storage groups inside Microsoft Information Store. It is important that Microsoft Information Store is fully backup when backing your Exchange Server.

iii. Microsoft Site Replication Service

Microsoft Site Replication Service is installed automatically when exchange server site replication feature is enabled. Microsoft Site Replication stores its runtime and configuration information inside its own database. If you are running your Exchange Server with Site Replication Service enabled, please make sure that you backup the site replication database as well.

iv. Microsoft Key Management Service (Exchange 2000 only)

Similarly, if you have setup your Exchange Server with Key Management Services enabled, please make sure that you backup the key management database as well. The online backup manager will backup your Microsoft Exchange Server by taking the following steps:

v. Run all Pre-Commands of this backup set

vi. If the backup type to run is [Database Backup type],

a. Windows System State will be backed up to a temporary directory specified in its backup set

b. All exchange database(s) selected are backed up to a temporary directory specified in its backup set

vii. If the backup type to run is [Transaction Log Backup type],

a. New transaction log extents generated since last backup will be copied to the temporary directory

viii. Remove transaction log extents backed up from the Exchange Server

ix. Run all Post-Commands of this backup set

x. Upload all backup files from the temporary directory to an Offsite Backup Server

xi. Remove temporary files from the temporary directory if [Setting] -> [Temporary Directory for storing backup files] is enabled

 

How to backup Microsoft Exchange Server

Please follow the instructions below to backup your Microsoft Exchange Server 2000 / 2003 using the online backup manager:

i. Open the online backup manager

Right click the online backup manager icon available in the system tray and choose [Open]

 

ii. Create a backup set

a. From the Menu, Choose [Backup Set] -> [New] -> [MS Exchange Backup Set]

 

b. Enter a name for your backup set

c

c. Select the database(s) to be backup

If this Exchange Server is also a domain controller of this Active Directory, select the [System State] checkbox as well. Otherwise, please install the online backup manager to the domain controller of this Active Directory and select the [System State] checkbox on that computer

d. Enter a temporary directory for storing the backup files before they are sent to an Offsite Backup Server

e. Set the backup schedule for Database Backup

f. Set the backup schedule for Transaction Log Backup

(Note: You can have more than one schedule in a backup set, i.e. you can perform intra-day transaction log backup by adding more than one daily transaction log backup schedule to

your backup set)

g. Set the encryption algorithm, encryption mode and encrypting key for this backup set

(Hint: For maximum security, please select AES (Advanced Encryption Standard) Algorithm, CBC (Cipher Block Chaining) mode and use an encrypting key with more than 8 characters.)

iii. Run Backup

a. Select the backup set you want to run on the left panel and press the [Start Backup] button (►)

b. Select the backup type (e.g. Database, Log Files) you would like to perform

c. Select [Off-site Backup Server] to start backing up your files to an Offsite Backup Server and press the [OK] button

d. You should get something similar to the screen shot below.

How to restore Microsoft Exchange Server

Please follow the instructions below to restore Microsoft Exchange Server 2000 / 2003 from an Offsite Backup Server.

i. Prepare the system for your Exchange Server (if required) Install the original version of Windows and Exchange Server (with the same level of service pack installed as in the original system) back to your computer

ii. Restore Windows Active Directory (if required) If you have re-installed Windows, please download the Windows System State backup file, named [SystemState.bkf], from Offsite Backup Server and then use [NTBackup.exe] to restore your Windows System State to its backup time from the backup file by following the instructions below:

a. Run [NTBackup.exe] from [Start] -> [Run]

b. Press the [Restore Wizard] button and then press the [Next] button

c. Press the [Import] button and use the [Browse] button to select the backup file [SystemState.bkf] downloaded

d. Select the checkbox next to the description that matches your backup file

e. Press the [Next] button and then the [Finish] button

iii. Install the online backup manager (if required) Please refer to the [Installation] section for information on how to install the online backup manager onto your computer.

iv. Startup the [Microsoft Information Store] services from Windows Services

v. Restore exchange database(s) from backup:

a. Download the database backup files to be restored from the Offsite Backup Server (or find the cached copy available in the temporary directory defined in your backup set) and save them to your hard disk (please make sure the directory structure is the same as it appears on the browser), namely:

->[C:]

-->[backup]

---->[ABC]

------>[Microsoft Information Store]

-------->[First Storage Group]

---------->[Mailbox Store(ABC)]

--------------->Priv1.edb

--------------->Priv1.stm

---------->[Public Folder Store(ABC)]

--------------->Pub1.edb

--------------->Pub1.stm

---------->E0000001.log

b. If the database to be restored exists on your computer already, please dismount it from the services using [Start] -> [Program] -> [Microsoft Exchange] -> [System Manager]

c. Use [ExchangeRestore.exe] from the [bin] directory under the installation directory of the online backup manager

(e.g. C:\Program Files\OBM\bin\ExchangeRestore.exe) to restore the exchange database(s).

Simply run [ExchangeRestore.exe] to print the usage

ExchangeRestore.exe Usage:

C:\Program Files\OBM\bin> ExchangeRestore.exe

Microsoft Exchange Server 2000/2003 Backup Recovery Utility

Usage:

ExchangeRestore DIR=path SERVER=server TEMP=tempDir [SERVICE=service [STORAGE=st

orage [DATABASE=database]]]

DIR Directory containing all backup files

SERVER Name of Exchange Server to be restored

TEMP Temporary directory to be used during restore

Please specific a path with plenty of free space

SERVICE Name of Exchange Service to be restored. It must be either

"Microsoft Information Store", "Microsoft Key Management Service"

or "Microsoft Site Replication Service"

STORAGE Name of storage group to be restored

DATABASE Name of database to be restored

1. To restore an exchange server:

ExchangeRestore DIR="C:\Backup" SERVER="ExchangeServer" TEMP="C:\Temp"

2. To restore the information store:

ExchangeRestore DIR="C:\Backup" SERVER="ExchangeServer" TEMP="C:\Temp"

SERVICE="Microsoft Information Store"

3. To restore an exchange storage group:

ExchangeRestore DIR="C:\Backup" SERVER="ExchangeServer" TEMP="C:\Temp"

SERVICE="Microsoft Information Store" STORAGE="StorageGroup1"

4. To restore an exchange database:

ExchangeRestore DIR="C:\Backup" SERVER="ExchangeServer" TEMP="C:\Temp"

SERVICE="Microsoft Information Store" STORAGE="StorageGroup1"

DATABASE="Database1"

where

"C:\Backup" is the directory containing all backup files

"ExchangeServer" is the server name of an exchange server

"C:\Temp" is the temporary directory to be used

"StorageGroup1" is the name of a storage group

 

d. (Example 1) To restore all databases from backup available in [F:\Backup] to an exchange server named [WIN2000SVR] using the temporary directory [F:\Temp], you can use this

command:

E:\Program Files\OBM\bin> ExchangeRestore DIR="F:\Backup" TEMP="F:\Temp" SERVER="WIN2000SVR"

Exchange Server Recovery Example:

E:\Program Files\OBM\bin> ExchangeRestore DIR="F:\Backup" TEMP="F:\Temp"

SERVER="WIN2000SVR"

Microsoft Exchange Server 2000/2003 Backup Recovery Utility

[Start] Exchange Server - 'WIN2000SVR'

[Start] Service - 'Microsoft Information Store'

[Start] Storage Group - 'First Storage Group'

[Start] Database - 'Mailbox Store (WIN2000SVR)'

Restoring file 'E:\Program Files\Exchsrvr\mdbdata\priv1.edb' ...

Restoring file 'E:\Program Files\Exchsrvr\mdbdata\priv1.stm' ...

[End] Database - 'Mailbox Store (WIN2000SVR)'

[Start] Database - 'Public Folder Store (WIN2000SVR)'

Restoring file 'E:\Program Files\Exchsrvr\mdbdata\pub1.edb' ...

Restoring file 'E:\Program Files\Exchsrvr\mdbdata\pub1.stm' ...

[End] Database - 'Public Folder Store (WIN2000SVR)'

[Start] Restoring transaction log - 'First Storage Group'

Restoring Log File 'F:\Temp\restore.tmp\First Storage Group\E00000B3.log' ...

Restoring Log File 'F:\Temp\restore.tmp\First Storage Group\E00000B4.log' ...

[End] Restoring transaction log - 'First Storage Group'

[Start] Applying transaction log ...

[End] Applying transaction log

[End] Storage Group - 'First Storage Group'

……………

[Start] Storage Group - 'SG2'

[Start] Database - 'acct'

Restoring file 'E:\Program Files\Exchsrvr\SG2\acct.edb' ...

Restoring file 'E:\Program Files\Exchsrvr\SG2\acct.stm' ...

[End] Database - 'acct'

[Start] Restoring transaction log - 'SG2'

Restoring Log File 'F:\Temp\restore.tmp\SG2\E0100072.log' ...

Restoring Log File 'F:\Temp\restore.tmp\SG2\E0100073.log' ...

[End] Restoring transaction log - 'SG2'

[Start] Applying transaction log ...

[End] Applying transaction log

[End] Storage Group - 'SG2'

[End] Exchange Server - 'WIN2000SVR'

E:\Program Files\OBM\bin>

 

e. (Example 2) To restore the database named [mail] in storage group [SG5] from backup available in [F:\Backup] to an exchange server named [WIN2000SVR] using the temporary

directory [F:\Temp], you can use this command:

E:\Program Files\OBM\bin> ExchangeRestore DIR="F:\Backup" TEMP="F:\Temp" SERVER="WIN2000SVR" SERVICE="Microsoft Information Store" STORAGE="SG5" DATABASE="mail1"

Exchange Server Recovery Example:

E:\Program Files\OBM\bin> ExchangeRestore DIR="F:\Backup" TEMP="F:\Temp"

SERVER="WIN2000SVR" SERVICE="Microsoft Information Store" STORAGE="SG5"

DATABASE="mail"

Microsoft Exchange Server 2000/2003 Backup Recovery Utility

[Start] Storage Group - 'SG5'

[Start] Database - 'mail'

Restoring file 'E:\Program Files\Exchsrvr\SG5\mail.edb' ...

Restoring file 'E:\Program Files\Exchsrvr\SG5\mail.stm' ...

[End] Database - 'mail'

[Start] Restoring transaction log - 'SG5'

Restoring Log File 'F:\Temp\restore.tmp\SG5\E0300012.log' ...

Restoring Log File 'F:\Temp\restore.tmp\SG5\E0300013.log' ...

[End] Restoring transaction log - 'SG5'

[Start] Applying transaction log ...

[End] Applying transaction log

[End] Storage Group - 'SG5'

E:\Program Files\OBM\bin>

 

f. Repeat the same procedure for each database to be restored to the Exchange Server.

g. You can use [Start] -> [Program] -> [Administrative Tools] -> [Event Viewer] to check if there are any errors generated from the exchange databases restoring activities.

vi. However, if ExchangeRestore.exe still cannot mount the restored files and returns with strange errors, e.g. bad signature, or null errors. Then Exchange server might have incorrectly spooled the backup files in the first place. Please try to mount the restored database and log files manually by the following instructions:

a. In MS Exchange System Manager, dismount both the Mailbox Store and Public Folder Store from the server.

b. Copy all the restored database files to the MDBDATA folder (By default, the MDBDATA folder is located under C:\Program Files\Excgsrvr\)

Mailbox Store:

- priv1.edb

- priv1.stm

Public Folder Store:

- pub1.edb

- pub1.stm

c. Use the ‘eseutil’ tool to repair the database files: eseutil /p "C:\Program Files\Exchver\MDBdata\priv1.edb" eseutil /p "C:\Program Files\Exchver\MDBdata\pub1.edb"

d. Mount both Mailbox Store and Public Folder Store to the Server through the MS Exchange System Manager.

vii. Completed

 

 

Online Backup for:

Internet Backup for Windows Server and XP Operating Systems Backup for Linux Operating Systems Backup for Solaris Operating Systems Novell Apple Backup any operating system which supports Java Backup for Microsoft Exchange Internet Backup for Microsoft SQL databases Data Backup for MySQL Database Applications Backup your Oracle Database Backup for Lotus Domino and Lotus Notes