Applies to: Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007 Topic Last Modified: 2007-11-16
This topic explains how to use the Microsoft Exchange Server 2007 recovery storage group (RSG) to recover a mailbox.
To perform the following procedure, the account you use must be delegated the following:
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Servers are part of a single forest or resource forests. Mailbox data can only be exported to mailboxes within the same forest. The Active Directory directory service accounts associated with the mailbox can be in an external forest, but mailbox data cannot be exported to servers in different forests.
Only Exchange 2007 databases are supported as recovery databases, and only Exchange 2007 is supported as a destination server for recovered mailbox data.
The Restore-Mailbox cmdlet can only use disconnected mailboxes as a source of data and connected mailboxes as a target for data.
If an RSG does not already exist, you can create one by running the following Exchange Management Shell command:
new-storagegroup -Server <Server_Name> -LogFolderPath <path_to_Logfiles> -Name <RSG_Name> -SystemFolderPath <Database_Path> -Recovery
Add a recovery database to the RSG by running the following Exchange Management Shell command:
new-mailboxdatabase -mailboxdatabasetorecover <Database_Name> -storagegroup <Server_Name>\<RSG_Name> -EDBFilePath <Database_Path>
Set the recovery database to allow overwrites by running the following Exchange Management Shell command:
set-mailboxdatabase -identity <Server_Name>\<RSG_Name>\<Database_Name> -AllowFileRestore:$True
Mount the recovery database by running the following Exchange Management Shell command:
mount-database -identity <Server_Name>\<RSG_Name>\<Database_Name>
Recover the mailbox of an existing user to an existing mailbox by running the following Exchange Management Shell command:
restore-mailbox -identity <User_name> -rsgdatabase <Server_Name>\<RSG_Name>\<Database_Name>
The following are examples of commands that can be used to recover user data from an RSG:
Restore-Mailbox -identity 'John Smith' -RSGDatabase 'RSG\mailbox database'
Get-MailboxStatistics -database 'RSG\Mailbox Database' | restore-mailbox
Restore-Mailbox -RSGMailbox 'John Smith' -RSGDatabase 'RSG\Mailbox Database' -id 'Allison Brown' -TargetFolder 'JSmith Email'
Restore-Mailbox -RSGMailbox 'John Smith' -RSGDatabase 'RSG\Mailbox Database' -id 'Allison Brown' -TargetFolder 'JSmith Email' -StartDate '02/02/05' -EndDate '02/05/05'
For general information about doing restores, see How to Perform a Basic Restore of Exchange Databases.