It is one of the pain points of Exchange admins to restore mailbox. Well, i did my homework and I want to share with you how to restore Exchange mailboxes using Backup Exec (Software from Symantec) or even snapshot software:
Step 1: Creating the Recovery Exchange Database
- Create a Recovery DB named RecoveryDB by running this Power Shell command:
New-MailboxDatabase -Recovery -Name RecoveryDB -Server ServerName -EDBFilePath “F:\Exchange Server\Recovery Databases\RecoveryDB\DB\RecoveryDB.edb” -LogFolderPath “F:\Exchange Server\Recovery Databases\RecoveryDB\LOG”
- Mount the database and check (This database can be overwritten by a restore).
- Dismount the database before starting the restore job.
Step 2: Restore Database from Tape (Backup Exec)
Use Backup Exec to run a restore job. ServerName in the below picture represent the Exchange Mailbox Server where the recovery database is hosted (mounted)
or using the new Backup Exec 2012 , here is the settings:
Settings are simple and I cannot go to each setting and explain it. I am supposing that you are restoring from a full backup Exchange database and using either Backup Exec 2010 or 2012.
Backup Exec is great because it will restore the database and then go and replay all logs. In short words, after the restore, the restored database will be in a clean shutdown scenario.
Step 3: Restore Database from Snapshot
If you are restoring from Snapshot software, then the restore will bring the recory database to dirty shutdown simply because snapshot restore will not replay the logs back. You have to do it manually by :
- Make sure your logs and DB files are in same directory.
- Delete the CHK file
- To dump the database and check if the database is dirty shutdown, type (eseutil /mh dbfile.edb )
- To replay logs and bring the database to healthy (clean shutdown), type (eseutil /R EXX /I /D), Where EXX is the log prefix
Step 4 :
Check the next Blog Post ! 🙂