About restoring Exchange 2010 Database to Recovery Database

Article:TECH144035  |  Created: 2010-11-11  |  Updated: 2013-09-04  |  Article URL http://www.symantec.com/docs/TECH144035
Article Type
Technical Solution


Subject

Issue



Microsoft Exchange Server 2010 introduces new technologies and features in many areas, and removes other important storage features. To implement Exchange 2010-compatible backup and restore applications, may need to adjust application to accommodate the changes described in this topic. One of the major changes in Microsoft Exchange 2010 is the removal of the concept of Storage Group which was present in Exchange 2003 and Exchange 2007.
 

Because storage groups were removed from Exchange Server 2010, the Recovery Storage Group (RSG) no longer exists. Instead, if an Exchange database needs to be restored, recover, and mount to a different location or server, it will use a RECOVERY DATABASE (RDB). The Recovery Database (RDB) is not tied to any original server or database. Each Exchange 2010 server can have no more than one mounted recovery database. There can be multiple recovery databases, but only one can be mounted at a time.

An RDB cannot be used to recover public folder content. In addition, RDBs are generally not designed for entire server recoverys, to restore multiple databases, or in an emergency situation that requires changing or rebuilding the Active Directory topology.

For further information from Microsoft about RDB, see the supplemental materials section below.


Solution



1) Create a Recovery Database (RDB) in Exchange 2010 using the Exchange Management Shell. Recovery database can not be created using the Exchange Management Console. Use the following command in shell to create the RDB:

New-MailboxDatabase -Recovery -Name RDB -Server “servername” -EdbFilePath "path" -LogFolderPath "path”

Example:   new -mailboxdatabase -Recovery -Name BD100 -Server MBX1 -EdbFilePath "D:\BD100\Database\BD100.edb" -LogFolderPath "D:\BD100\Logs"

          

 

 Do not mount the recovery database before the restore. If the Recovery Database is mounted then dismount the database before the restore. Select the option "This database can be overwritten by a restore" on the database property page in Exchange Management Console utility.

2) Select the Database to be restored from the Backup Exec Restore job properties

3) Go to Microsoft Exchange Redirection and select Redirect Exchange Sets. Enter the following options as shown in following figure,

Redirect to Server or Database Availablity Group:

Restore to Database or Recovery Database:

4) Go to Microsoft Exchange and select Default options

5) Run the restore

6) Once the restore is successfully completed data from a RDB can be merged to an existing mailbox or exported to a folder.

 

Other useful commands and information on Exchange 2010 RDB:

Remove an existing Recovery Database:

1)  Logon to  Exchange Management Shell with a Administrator equivelent account

2)  Run command:      Remove-MailboxDatabase <Name of the Recovery Database>

Example:  Remove-MailboxDatabase –RDB

3)  Manually delete the corresponding files.

 

Create a new Recovery Database using the default database and log file path:

New-MailboxDatabase -Recovery -Name <Name of Recovery Database> -EXCH2010

Example:  New-MailboxDatabase -Recovery -Name RDB -Server EXCH2010

This creates a new Recovery Database called "RDB" on a server called "EXCH2010".  The data will be placed in the default pach - C:\Program Files\Microsoft\Exchange Server\V14\Mailbox

To determine what mailboxes are available for restore, the following command can be run:

Get-MailboxStatistics -Database <name of Recovery Database>   

Examples:  Get-MailboxStatistics -Database RDB  

If the mailbox name too big for the "Dispalyname" column, run:

Get-MailboxStatistics -Database RDB |Fl Display Name

Get-Mailbox |Fl Name      (Will show available mailboxes with full name)

To find out if mailbox is enabled run:

Get-Mailbox |Fl Name,IsMailboxEnabled     

 Or

Get-Mailbox |Fl Name,IsMailboxEnabledTrue 

NOTE:  A recovery database cannot be used to recover Public Folder data.

 

Below are useful commands to restore mailboxes and folders:

 

How to restore a mailbox that has not been deleted:

 

Restore-Mailbox -Identity <mailbox name> -RecoveryDatabase <Recovery Database Name>

Example:  Restore-Mailbox -Identity 'John Smith' -RecoveryDatabase RDB

 

How to restore a mailbox that was been deleted, but was been recreated (redirected restore is needed):

 

Restore-Mailbox -RecoveryMailbox <name of mailbox to be restored to> -Identity <name of mailbox> RecoveryDatabase <Recovery Database name> -TargetFolder "<Name of folder to be restored to>"

Example:  Restore-Mailbox -RecoveryMailbox ‘backup’ -Identity ‘John Smith’ -RecoveryDatabase RDB -TargetFolder "Recovery"

If the mailbox was deleted and recreated, run a redirected restore to another mailbox with a -TargetFolder “Recovery”, export this folder to a PST file for the user to import.

 

How to restore a Mailbox Folder into the same mailbox it was backed up from:

Restore-Mailbox –ID <Mailbox name>' -RecoveryDatabase <Recovery Database name>  -IncludeFolders \"<name of folder to be restored>"Example: Restore-Mailbox -ID 'backup' -RecoveryDatabase RDB  -IncludeFolders \"Sent Items"

NOTE:  A warning will be seen - Restore will take a long time, do you want to proceed?

 

How to run a redirected restore of mailbox into a folder (Recovery) in the same mailbox it was backed up from:  

Restore-Mailbox -RecoveryMailbox <name of mailbox restoring from> -Identity <name of mailbox restoring to> -RecoveryDatabase <name of recovery database> -TargetFolder "<name of folder to be restored to>"

Example:  Restore-Mailbox -RecoveryMailbox backup -Identity backup -RecoveryDatabase rdb -TargetFolder "Recovery"

This will will allows the user expand the folder (Recovery) and pull out what is needed:

 

How to run a Redirected mailbox restore to a folder in another mailbox:

Restore-Mailbox -RecoveryMailbox <name of mailbox restoring from> -Identity <name of mailbox restoring to> -RecoveryDatabase <name of recovery database> -TargetFolder "<name of folder to be restored to>"

Examples:  Restore-Mailbox -RecoveryMailbox Administrator -Identity backup -RecoveryDatabase rdb -TargetFolder "Recovery"

Once the mailbox has been restored to the folder, it can be exported to a PST file for the user to import.


Supplemental Materials

SourceRight Now Web
ValueCreate a Recovery Database
Description

 http://technet.microsoft.com/en-us/library/ee332321.aspx


SourceRight Now Web
ValueRecovery Database General Information
Description

http://technet.microsoft.com/en-us/library/dd876954.aspx




Article URL http://www.symantec.com/docs/TECH144035


Terms of use for this information are found in Legal Notices