View Source

This article describes how to restore a Microsoft Exchange mailbox that was previously backed up by R1Soft CDP. Starting from Version 4.2.0, the CDP Server provides a special function for Exchange database replication. Read more here:

{info:title=Tip}Exchange 2010 no longer includes the concept of storage groups. In earlier versions of Exchange, one or more Exchange store databases could be grouped into a storage group, which could then be managed as a unit. Because storage groups were removed from Exchange Server 2010, a *recovery database* can now be used instead.
{info}
CDP provides the ability to take a snapshot of a Microsoft Exchange mailbox. Since CDP uses the VSS Exchange writer, data integrity and consistency during the backup operation are ensured.

----
{toc-zone:location=top|maxLevel=3|minLevel=3|type=flat|separator=pipe|style=border:1}

----
h3. 1. Using CDP to Restore Database Data and Log Files

In order to restore a database, follow the instructions below.

1. Click on "Recovery Points" in the Main Menu to open the "Recovery Points" window.
|| Standard Edition || Enterprise Edition || Advanced Edition ||
| !menu-recp-st.png! | !menu-recpoints.png! | !menurecoverypointadva.png!\\ |
2. In the "Recovery Points" list, from the horizontal menu, select the Agent where MS Exchange is installed and the appropriate Disk Safe to restore from.

!select-agent-ds.png!

3. Then select a Recovery Point to restore from, and click on the "Browse" icon in the "Actions" column for this Recovery Point.

!select-agent-ds-browse.png!
{info:title=Tip}To find a Recovery Point, you can use the Basic and Advanced List Filters. See [Customizing the Recovery Points List].
{info}
{info:title=Note}
Note that if you configured the encryption during [Disk Safe creation|Creating Disk Safes], you will be asked to enter the encryption passphrase when you click on the "Browse," "Bare Metal Restore," "Browse Databases," or "Exchange" icon.

!Enter Encryption Passphrase window.png!

So that you don't have to enter the passphrase every time you click on one of the above-mentioned icons, check the "Remember passphrase until logout" check-box. Then click the "OK" button.

!Enter Encryption Passphrase window_Remember passphrase option selected.png!
{info}

4. The "Browse Recovery Point" window opens.

!browse-rec-p.png!

See also: [Browsing Recovery Points].

5. Browse to locate the SQL check point file, and the data and log files (Enn.chk, .mdf, and .ldf).

!rec-p-location.png!

Select the checkboxes next to the files and folders to restore.

!rec-p-select.png!

6. Once the files and folders are selected, click on "Restore Selected."

!restore-selected1.png!

7. The "Restore Files" window will open.

8. Select the Agent where MS Exchange is installed.

Specify to restore the files to an alternate location, as we are later going to attach them to an Exchange Recovery Group.

!restore-files1.png!

9. Click "Restore."

!restore-button.png!

10. You can view the Restore Task results in the "Task History."

!menu-taskhistory.png!

11. In the "Task History" list, find the task you want to view the summary for and click it. The "Summary" tab located on the bottom area accumulates general information about the task.

!task-success.png!

----
h3. 2. Using Eseutil to Replay Log Files

Once the files have been restored, it is time to run {color:blue}Eseutil{color} to get the data files into a clean shutdown state so that they can be attached to a recovery storage group, and so that the log files are played into the backup.

On the Exchange server where the files were restored, open up the command prompt and change the directory to the location where you restored the {color:blue}.chk{color}, {color:blue}.edb{color}, and {color:blue}.ldf{color} files. Operating inside of the directory where the data and log files exist eliminates misspellings, incorrect paths, etc.

For example, if the files were restored to the {color:blue}c:\test{color} directory, but the original files were located under this directory ...

{color:blue}C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group{color}{color:#000000},{color}

 ... then the restore directory path will be as follows:

{color:blue}C:\test\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group{color}{color:#000000}.{color}

From this directory, run the following command:
{code}
Eseutil /R Enn /I /D
{code}
For example:
{code}
Eseutil /R E00 /I /D
{code}
!eseutil1.png!
For more information on using {color:blue}Eseutil{color} and the different commands, see the following technet article:

[http://technet.microsoft.com/en-us/library/bb123479(EXCHG.80).aspx]



----
h3. 3. Restoring a Mailbox Using Exchange Management Shell

1. Find the Exchange server database ({color:blue}.edb{color}) file you have just restored. In our example, we rename this file to "RecoveryDB.edb."

!mail-rename.png!

!mail-rename1.png!

2. Create a folder for log files.

!new-folder.png!

3. Now we are going to launch the Exchange Management Shell to restore the mailbox. Go to Start !arrow.png! (All) Programs !arrow.png! Microsoft Exchange Server 2010 Exchange Management Shell.

!exc-shell.png!

4. The Exchange Management Shell screen will open.

!shell04.png!

5. Use the {color:blue}New-MailboxDatabase{color} command to create a mailbox database object in the database container in the Active Directory. For detailed syntax and parameter information, see [http://msdn.microsoft.com/en-us/library/aa997976(v=EXCHG.140).aspx|http://msdn.microsoft.com/en-us/library/aa997976%28v=EXCHG.140%29.aspx].




In our example, we restore the {color:blue}C:\test\RecoveryDB.edb{color} file using the following command:
{code}
New-MailboxDatabase -Recovery -Name RecoveryDB -Server XCHG -EdbFilePath C:\test\RecoveryDB.edb -LogFolderPath C:\test\logs
{code}
!shell01.png!

6. Mount the newly created database, RecoveryDB, using the {color:blue}Mount-Database{color} command. For detailed syntax and parameter information, see [http://msdn.microsoft.com/en-us/library/aa998871(v=EXCHG.140).aspx]. In our example, we use the following command:
{code}
Mount-Database "RecoveryDB"
{code}
!shell03.png!

7. Use the {color:blue}Get-MailboxStatistics{color} command to obtain information about a mailbox, such as the size of the mailbox, the number of messages it contains, and the last time it was accessed. For detailed syntax and parameter information, see [http://msdn.microsoft.com/en-us/library/bb124612%28ru-ru,EXCHG.140%29.aspx].

!shell02.png!

8. Extract mailbox content from the restored database using the "{color:blue}Restore-Mailbox{color}" command. The {color:blue}\-RecoveryDatabase{color} parameter specifies the recovery database from which you are restoring the mailbox. In the following example, we restore a "MargeSimpson" mailbox. More parameters for "{color:blue}Restore-Mailbox{color}" can be found here: [http://msdn.microsoft.com/en-us/library/bb125218.aspx]



{code}
Restore-Mailbox -Identity MargeSimpson -RecoveryDatabase RecoveryDB
{code}
!restore-mailbox.png!
{toc-zone}
\\









{excerpt:hidden=true}Instructions on how to restore a MS Exchange 2010 previously backed up by CDP.{excerpt}