In this post I will demonstrate how to use Windows Server Backup to backup and restore a mailbox database for Exchange Server 2010.
There are three parts to this tutorial:
- Installing Windows Server Backup on Windows Server 2008 R2
- Backing Up an Exchange 2010 Mailbox Database
- Restoring an Exchange 2010 Mailbox Database
The server I am using is running Windows Server 2008 R2 and has Exchange Server 2010 installed with the Mailbox server role. A single mailbox database has been configured, and one mailbox exists in the database.
Watch the video here or scroll down for the complete step by step process.
Installing Windows Server Backup on Windows Server 2008 R2
Windows Server Backup is not installed by default, so the first step here is to install it. Open an elevated Powershell session and run the following commands.
PS C:\> Import-Module servermanager PS C:\> Add-WindowsFeature backup
Windows Server Backup can now be launched from the Administrative Tools menu.

The Windows Server Backup console
Backing Up an Exchange 2010 Mailbox Database
If the server that will run the backup is a DAG member and you are using Windows Server Backup there is a registry change required first. See Windows Server Backup Completed with Warnings for Exchange 2010 Mailbox Server.
From the Windows Server Backup window click on Backup Once.

Start a Windows Server Backup of Exchange 2010
There is no existing scheduled backup on this server, so Different Options is the only selection. Click Next to continue.

Choose whether to use existing backup options on the server
At the next step I’m choosing a Custom configuration so that I can look closer at the volumes to be backed up. Click Next to continue.

Choose a Custom backup in Windows Server Backup
Now it is time to select the volumes to be backed up. For an Exchange Server 2010 mailbox database backup we need to choose any volumes that have Exchange database or log files on them. The entire volume needs to be backed up, not just the folder holding those files.
Click the Add Items button to open the selections dialog.
In this case the mailbox database is on volume D:, while the transaction logs are on volume C:, so both volumes are selected. Click OK to close the dialog.

Select the volumes containing Exchange application files
Next click the Advanced Settings button.

Before starting the Exchange 2010 mailbox database backup some advanced settings are needed
Select the VSS Settings tab and make sure that VSS full backup is chosen. Click OK and then Next to continue.

Choose VSS Full Backup for Exchange 2010 mailbox database backups
The backup can be stored on either a local drive or a remote network share. In this demonstration I’m backing up to a local drive.

Choose to backup Exchange to a local drive or remote network share
Select the volume to back up the Exchange 2010 mailbox database to. You can’t choose a volume that is part of the backup selections list. Click Next to continue.

Choose the volume to back up Exchange 2010 to
When you are happy with your selections click Backup to start the backup.

Start the Exchange 2010 mailbox database backup
The time taken to backup will depend on the size of your mailbox database.

Running an Exchange Server 2010 Mailbox Database Backup
When the backup is complete click the Close button.

Exchange 2010 Mailbox Database backup is complete
Verify that the backup was successful. You can also click the View Details link to see more information.

Exchange 2010 Mailbox Database backup result
Restoring an Exchange Server 2010 Mailbox Database
For this demonstration the mailbox database has been dismounted and the database file deleted. The Exchange server is unable to mount the database due to the missing file.

Unable to mount Exchange 2010 Mailbox Database due to missing file
The mailbox database needs to be recovered from the previous good backup. But first we need to mark the mailbox database as restorable. In the Exchange Management Console open the properties of the mailbox database.

Open the Mailbox Database properties
Select the Maintenance tab and tick the box This database can be overwritten by a restore.

Enable the Exchange 2010 mailbox database to be overwritten by a restore
You can also use the Exchange Management Shell to perform this task.
[PS] C:\>Set-MailboxDatabase "Mailbox Database EX2 01" -AllowFileRestore $true
In Windows Server Backup click on Recover to start the Recovery Wizard.

Start the Windows Server Backup Recovery Wizard
The previous backup is stored on the local server in this case. Click Next to continue.

Choose the backup location to restore the Exchange 2010 Mailbox Database from
A calendar is displayed with all of the dates that backups occurred on highlighted in bold. If more than one backup was taken on that date then there are multiple entries in the drop down list. Choose the backup that you want to restore from, usually the most recent one. Click Next to continue.

Select the backup date to restore the Exchange 2010 Mailbox Database from
The recovery type for an Exchange 2010 mailbox database restore is Application. Select the recovery type and click Next to continue.

Choose the Application recovery type for Exchange 2010 Mailbox Database recovery
Windows Server Backup detects the type of application that was backed up and shows you a list. Because this is the most recent Exchange server backup it also offers the option to not roll forward the database once the restore has been completed. This means that the transaction logs that were written on the server since the time of the backup will be replayed into the restored database, bringing it completely up to date.
If you don’t want to roll the database forward (ie you are trying to recover the database to a specific point in time) then tick the box. Otherwise click Next to continue.

Choose the application to restore and whether to roll the Exchange database forward
In this example we’re recovering a lost database, so we will be restoring it to the original location. If you do not want to overwrite an existing database you can choose to restore to an alternate location instead. Click Next to continue.

Choose to recover the Exchange 2010 Mailbox Database to its original location or an alternate location
When you’re ready to proceed click Restore to begin the recovery.

Begin the Exchange 2010 Mailbox Database restore
The restore time will depend on the size of the mailbox database being recovered. When the restore is complete click on Close.

Exchange 2010 Mailbox Database restore complete
In the Application Event Log of the server we can see the recovery operation has taken place.
First the restore is begun:
Log Name: Application Source: MSExchangeIS Date: 12/4/2010 8:51:30 PM Event ID: 9725 Task Category: Exchange VSS Writer Level: Information Keywords: Classic User: N/A Computer: EX2.exchangeserverpro.local Description: Exchange VSS Writer will restore a backup set to database 'Mailbox Database EX2 01', which is the same database from which the backup was originally taken.
Then the restore is completed successfully:
Log Name: Application Source: MSExchangeIS Date: 12/4/2010 8:51:40 PM Event ID: 9756 Task Category: Exchange VSS Writer Level: Information Keywords: Classic User: N/A Computer: EX2.exchangeserverpro.local Description: Exchange VSS Writer successfully restored the backup set to database 'Mailbox Database EX2 01'. To bring the restored databases to a clean-shutdown state, database recovery will be performed using the information in the restore environment document 'C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\E00restore.env'.
The existing transaction log files are then replayed into the database to roll it forward:
Log Name: Application Source: ESE Date: 12/4/2010 8:52:15 PM Event ID: 301 Task Category: Logging/Recovery Level: Information Keywords: Classic User: N/A Computer: EX2.exchangeserverpro.local Description: Information Store (2608) Mailbox Database EX2 01: The database engine has begun replaying logfile C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\E000000004D.log.
And finally the mailbox database is mounted:
Log Name: Application Source: MSExchangeIS Mailbox Store Date: 12/4/2010 8:52:32 PM Event ID: 9523 Task Category: General Level: Information Keywords: Classic User: N/A Computer: EX2.exchangeserverpro.local Description: The Microsoft Exchange Database "Mailbox Database EX2 01" has been started. Database File: D:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\Mailbox Database EX2 01.edb Transaction Logfiles: C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\ Base Name (logfile prefix): E00 System Path: C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\ (Start Duration=00:00:03.032)
The mailbox database has now been recovered.




After the backup is completed. When I go to recovery wizard at select recovery type = Applications option is greyed out. How can I resolved this so I can select applications?
Great stuff Paul!
This was very helpful. Thank you for your time and effort.
Excelente trabajo.
Excellent doc Paul – Can you please explain why the back up has to be done at volume level and why the backup cannot be performed at folder level?
Cheers!
Great doc! Was very helpful to restore the mailbox database!
Thx Christophe
Excatly, which is the reason that i can’t select single folder? I have and SBS 2011 with exchange 2010. The database and log is on the same volume. If i move Datastore and Log on two different volume is it possibile to backup only these two volumes?
Best regards
Hi! What about saving/detetion transaction logs after backup completes? Do we need to delete all logs after successful bakup? Can we do it manually from task (script)? Otherwise we will get ampty disk space, is not it?
Excelente Tutorial.
Thanks.
Hi,
Great tutorial thanks, but when i restored my exchange only the mails was restored, the new users since the last recovery or the new distribution group was not restored … how to explain that ?
Thanks for all
Best regards,
You make it very clear that when using Windows Server Backup, entire volumes need to be backed up as opposed to individual databases. If I wanted to restore and overwrite a single database but my volume restore contained several databases, would it be acceptable to just select the ‘This database can be overwritten by a restore’ option for the one database that I want to overwrite. What would happen with the other databases that are being restored if I chose to restore to original location but the ‘This database can be overwritten by a restore’ option was not selected. Thanks!
Hi Please can you help me? I have an Exchange 2010 sp1 server on Windows Server r2. The backs up are configured correctly but the Transactiion log just wont clear. the logs are now at 125 and 175 on two mailstores.
Please help
Hi,
Be carrefull, Windows Server Backup does not check database integrity, it just save files and says nothing. You could lost all your mail by using this and take no preventive actions.
Check your database integrity each time you backup, or you will have good surprises in restoring corrupted data…
Hi,
Be carefull, Windows Server Backup does not check database integrity, it just saves files and says nothing. You could lost all your mail by using this if you’re taking no preventive actions.
Check your database integrity each time you backup, or else you will have very bad surprises in restoring corrupted data…
Hi.
Don;t worry friends here is solution for your all problems related exchange server mailbox, Kernel for exchange server make tool for restore with windows server backup and recover all mails in edb file format from corrupt and damaged MS exchange server all versions. for more details visit in search engine Kernel email recovery software.
Hi…. Thanx alot
gr8 stuff
Bt i m facing a prblm while taking backup, there is an error saying “backup operation failed, cannot create shadow copy”. I tried alot f thing bt stil nt wrking please help me out neone of you guys
Nice Tutorial.
great
it’s very helpful
After the backup is completed. When I go to recovery wizard at select recovery type = Applications option is greyed out. How can I resolved this so I can select applications?
So I have an Exchange 2010 lab running on Hyper-V 2008 R2. I built another guest VM and installed Windows Server Backup. I cannot get that to work, getting VSS errors. Do you know if this will work inside a VM? Just trying to go through some backup/recovery testing using a real life backup solution. Thanks
You’re trying to back up Exchange using a different server? Windows Server Backup can only backup local Exchange data, not remote servers.
So after the backup has been restored to the original location users automatically have all info restoredon outlook?
Are there any steps to make sure all users have their old mail?
thanks
After you finish the restore of a database it, and the data within it, are accessible to the users.
Thanks Paul, I have a hyperV server that took the place of the main exchange when it was down so its the main server now.
How do i point all users to the restored exchange server so they can see their old emails?
Thx
Thank you for the good writeup. It if truth be told was once a amusement account it.
Glance complex to more introduced agreeable from you! By the way, how can we communicate?