Exchange Server Mailbox Restoration in sequence.
1.) Create a Restore job on the Netvault Server.
2.) Exchange Restore Options (VSS – FULL)
Instead of restoring an entire database and mount it, “Copy Files to Target Directory Only” is selected and specified the location where the EDB file, the transaction folder and transaction logs will be located. The drive is on the Mailbox server where you want the Netvault to restore the file to.
3.) Once the EDB file and transaction logs had been restore to the “Restore” drive in the Mailbox Server.
You will need to the below powershell command to create a recovery database on the Exchange Mailbox Server.
The “-EdbFilePath” and “-LogFolderPath” will be the location of the recently restored Exchange database file.
New-MailboxDatabase -Recovery –Name -Server -EdbFilePath
-LogFolderPath
4.) Do take note when the Recovery Database had been created on the Mailbox Server, you will not be able to mount the recovery database. This is because the recovery database state is still in a “Dirty Shutdown” state. You can run the following command to check.
i) To check database state:
eseutil /mh "c:\DBRecovery\Mailbox Database 0436312751.edb
ii) To check consistency of needed logs:
eseutil /ml c:\DBRecovery\E00
iii) To recover database state to clean shutdown
eseutil /R E00 /l "c:\DBRecovery" /d "c:\DBRecovery\Mailbox Database 0436312751.edb"
eseutil /R E00 /l "c:\DBRecovery" /d "c:\DBRecovery\Mailbox Database 0436312751.edb" /i
the /i is used when the initial recovery command return an error “-1216”
iv) Should the /i switch still does not work than we will forced to repair the edb file, which is what we had done to force
a repair on the database. This is the last option we have in order to have the database to be in a clean state. This
process can be very time consuming especially if the mail database is huge for example more than 99 GB.
eseutil /p E:\RDB\APSGPDB05\APSGPDB05.edb
5.) Once the repair is done and successful with the database in a clean state of shutdown. You can go ahead and mount the recovery database from the Exchange Management Console.
6.) To check whether the recovery database contain mailboxes, run the following powershell command.
Get-MailboxStatistics -Database RecoveryDatabase
7.) Once the mailbox is identified, you can go ahead and run the powershell command to restore mailbox or folder onto the existing user mailbox. Do take note this way or restoration will increase the user mailbox size and likely to cause the user to exceed its existing mailbox quota. You may want to manually increase the user mailbox quota to avoid any further troubles.
new-mailboxrestorerequest -sourcedatabase RDBAP02 (recovery DB) -sourcestoremailbox "John Smith"
-targetmailbox gokul (restore to actual mailbox mail DB) -targetrootfolder Restore -IncludeFolders 'Inbox/Whitelist'
(this to restore subfolder Whitelist under the Inbox)
8.) On the user Outlook, he will see an additional folder named “Restore” appearing on the left side of his Outlook under his mailbox. The require mails are dumped under the “Restore” folder.