How to Backup, Restore and Recover an Exchange 2013 Database

How to Backup, Restore and Recover an Exchange 2013 Database

Hi all,

In this guide I will show you what options you have to backup your database using Windows Server Backup, then I will show you what additional actions you will be able to do with the tool and finally, I will show you how to perform a DB recovery.

I recently had a few people asking me about database backup / restore options so, I decided to write a detailed guide that will show you how to backup an Exchange 2013 database, then restore it and finally how to recover the emails. This is going to be a long guide 🙂

 Enjoy

I will walk you through the following 3 Parts:

1 ) Creating a Backup using Windows Server Backup.

2) Performing a  Restore from a Backup we created on a separate drive.

3) Performing a Recovery.

Most organizations use 3rd party tools to perform backups of their mail servers such as Backup exec or netvalt.

In this guide I will show you how to perform the exact processes you would if you would’ve used any of the 3rd party tools using a feature that exists in Windows Server.

This tool by Microsoft is Free (License is needed) and is Built-in the System.

All you need to do is to install Windows Server Backup , I Recommend installing it on a separate server and not on the one that has Mail Server on it , you may notice I installed it on the same server that has the mail server on but the reason is that I lack system resources for another VM machine.

Let’s start…

Part1

Before starting with the backup we must check which Database hold the Exchange server.

post-479-0-57735200-1413461811.png

The first step I’ll do on that Exchange server is to install a Role named Windows Server Backup.

post-479-0-64705900-1413461814.jpg

post-479-0-15332000-1413461816.png

Next step is to access Windows Server Backup and start the Backup Process:

post-479-0-37907100-1413461818.png

As you see we have 3 options to choose from: Backup Once, Backup Schedule, and Recover.

I will choose Backup Once:

post-479-0-68043300-1413461820.png

In the screenshot below you can see I’m not interested in a scheduled backup but in an instant backup.

post-479-0-67052200-1413461823.png

I have two options:

Perform a full backup or to a custom backup.

post-479-0-86463800-1413461826.png

In order to choose what we want to backup we need to press Add items:

post-479-0-55385700-1413461829.png

I ticked only the Mailbox folder that includes the Database:

post-479-0-15219700-1413461831.jpg

After choosing the folder we need to press on Advanced Settings:

post-479-0-25528400-1413461832.png

The option I ticked means that I’m not using any 3rd party tools in the backup process.

post-479-0-55504800-1413461833.jpg

Press Next:

post-479-0-04415400-1413461835.png

Warning: Don’t save the backup on a local drive !! This was done in this way only for the use of this guide.

It is not recommended because as soon as our server will be damaged also our backups will be lost.

post-479-0-47028400-1413461836.png

Finally press Backup:

post-479-0-36611000-1413461837.png

Restore Recover Exchange 2013

Backup process has completed successfully

Restore Recover Exchange 2013

Part 2:

How to perform a Database Restore:

I have created a reasonable amount of emails in the mailbox and then a created the backup (Part 1), Then I Deleted the emails (Also from Deleted items).

In the screenshot below you can see that my mailbox is empty, now let’s start with the restore.

Restore Recover Exchange 2013

You may see the restored files that  I created, It is stored on the local server, [In case you forgot :)]

Restore Recover Exchange 2013

Let’s open Powershell and check the last backup we made:

Restore Recover Exchange 2013

Now we are opening “Windows Server Backup” and click on Recover:

Restore Recover Exchange 2013

In the next screenshot I choose the location of the backup we created earlier:

Restore Recover Exchange 2013

In the next step we will be able to see the dates in bold that have a backup, as you may see the 15th:

Restore Recover Exchange 2013

The wizard asks what will we like to restore, Let’s choose ” File and Folders

Restore Recover Exchange 2013

We mark the items we would like to restore (Database Folder):

Restore Recover Exchange 2013

I opened a new folder named Restore Backup in drive C:\ and I will perform the restore to there.

Restore Recover Exchange 2013

Restore is in progress…

Restore Recover Exchange 2013

Restore Recover Exchange 2013

Restore Recover Exchange 2013

Part 3:

We got to the most interesting part of the guide, Performing the Database Recovery:

But FOA, The Differences between Soft Recover and Hard Recover are:

Soft Recover: we will use this only when the database requires us to perform a manual restore using different parameters.

This action will connect the log files to the database and will allow us to mount the database.

Eseutil \r 
Hard Recover:  We will leave this action as our last resort, only after trying all other options and still being unable to mount the DB will we use this option as it is an aggressive search for all tables and repairs them
it’s not recommended to use it as in a rare event of a  failure we may permanently lose our information. [Last Resort]
Eseutil \p 
During this guide, you will notice I have used Eseutil /r on a Eoo file that the log file writes to the Chk file (checks the transactions).
This is the folder that contains the restore I have just performed:

Restore Recover Exchange 2013

Let’s open Powershell again and start the restore process using eseutil:

Restore Recover Exchange 2013

Status: Dirty Shutdown

As soon as the database has been restored will be in “dirty shutdown” mode we will perform a soft recovery using the following commands:

Restore Recover Exchange 2013

Recovery has been successfully completed.

Restore Recover Exchange 2013

After switching the database clean shutdown status we can advance to the next command that allows us to restore,  there are some nice commands.

I’m now creating  a new database named: RDBRECOVER

Restore Recover Exchange 2013

post-479-0-56596800-1413461860.jpg

Let’s mount the database

post-479-0-67139500-1413461861.jpg

I would like to check whether the database is mounted or not.

Restore Recover Exchange 2013

After creating the database and checking that the database has been mounted all that is left is to complete is the last restore process, I have requested to restore emails of the administrator account.

Restore Recover Exchange 2013

We have a final request after we finish the restore process.

post-479-0-57291000-1413461864.jpg

So what do we leave?

Let’s check the status of the account/emails:

Restore Recover Exchange 2013

Looks like everything has been completed without any issues.

This guide could help you because not everybody has the budget to purchase expensive recovery tools like Veeam, BackExec, etc…

Thank you,

Meir Peleg

Leave a Comment

Your email address will not be published.

In the news
Load More