Share via


Exchange 2013 Database Recovery

Database Recovery Steps

Step 1: Provide backup folder path

Provide the folder path location to the backup team where the database and log file needs to restore. 

Note

Make sure you have enough free disk space on the restored location

Step 2: Verify database health

Verify the database health status after the restoration of the database file. Run the following command to verify the status

eseutil.exe /mh E:\Recovery\RDB.edb | select-string "State:",  "Log Required"
 Caution
If the database is Clean Shutdown move to next step. In case if it is dirty shutdown perform the soft recovery and if it fails to move to hard recovery

Step 3: Create a Recovery database

Create a Recovery database using the following commands

New-MailboxDatabase -Recovery RDB01 -Server MBX01 -EdbFilePath E:\Recovery\RDB.edb

Step 5: Verify Database state

Verify the database is in a mounted state

Get-MailboxDatabase RDB01 -status | fl Name, Mounted

Step 6: Mount the database

Mount the database by executing the following command.

Mount-Database RDB01 –Verbose

Step 7 : Verify the database Status

After the database is mounted we must verify the database status using the next command.

Get-MailboxDatabase RDB01 -status | fl Name, Mounted

Step 8: Verify the mailbox statistics

At step 8 we must verify the mailbox statistics of the restored database by executing the following commands.

  • To find all mailbox in the recovery database
Get-mailboxstatistics -database RDB01
  • To find specific mailbox w.r.t to user account or GUID
Get-MailboxStatistics -Database RecoveryDB | ?{$_.DisplayName -like 'Raji*'} | fl DisplayName,MailboxGuid,DisconnectDate

Step 9:  Restore the mailbox

Restoring them using the following Exchange PowerShell command based upon your requirement

  • Restoring the complete user mailbox
New-mailboxrestorerequest –sourcedatabase “RDB01” –sourcestoremailbox “2007u1” –targetmailbox “2007u1@aricent.com"
  • Restoring the mailbox using guid
New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox 4a1d2118-b8cc-456c-9fd9-cd9af1f549d0 -TargetMailbox Raji
  • Restoring the source mailbox to different user mailbox
New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox 'Raji'  -TargetMailbox Subramanian -TargetRootFolder Restore -AllowLegacyDNMismatch
  • Restoring the mailbox email in a seperate folder (Restore) on the user mailbox
New-MailboxRestoreRequest -SourceDatabase “RDB01” -SourceStoreMailbox 'Raji'  -TargetMailbox 'Raji'  -TargetRootFolder Restore -IncludeFolders '#Inbox#/#Test#/*' -AllowLegacyDNMismatch

Step 10: Check the status of mailbox restoration

Check the status of mailbox restoration when completed check in the user mailbox on all restored emails.

Get-MailboxRestoreRequest

Step 11: Remove the completed mailbox restore

Remove the completed mailbox restore using the following PowerShell command

Get-MailboxRestoreRequest -status Completed | Remove-MailboxRestoreRequest Reference URL