We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Backup

How to Restore a Microsoft Exchange 2010 Server to a Recovery Database

  • Last updated on

This article refers to the Barracuda Backup Legacy Release firmware or newer, and Microsoft Exchange Server 2010 and 2010 SP1 except where noted.

This article assumes the Microsoft Exchange Server is installed and configured. This article describes how to restore a Microsoft Exchange 2010 Server to a Recovery Storage Group. You can also restore a Microsoft Exchange 2010 Server by overwriting an existing database or restoring to an original location.

If you do not create a recovery mailbox database, Barracuda Backup creates one and places it in the default Exchange installation location. If you want to create a recovery mailbox database in a different location, use the following Exchange PowerShell command, replacing the bracketed variables with the actual database and server names and the path with your desired location:

New-MailboxDatabase -Recovery -Name "[databasename] - Recovery" -Server [servername] -EdbFilePath "R:\[databasename] - Recovery\[databasename] - Recovery.edb" -LogFolderPath "R:\[databasename] - Recovery"

The recovery mailbox database must be named exactly as indicated above including the spaces, for example: "Mailbox Database 1234 - Recovery".  If it is named anything else Barracuda Backup will ignore it and create one in the default Exchange installation location.

Step 1. Barracuda Backup Setup

  1. Log in to Barracuda Backup, and select the Barracuda Backup appliance that contains the Microsoft Exchange 2010 Server backups you want to restore.
  2. Go to the Restore > Restore Browser page, and select the Microsoft Exchange data source; the backed up Exchange 2010 databases display.
  3. To restore the latest backed up database, click Restore. The Restore window displays. In the Restore to section, select Original Location.  

    If restoring to a server with a different IP address, from the drop down menu, select the associated Exchange Server from the list.

     

  4. Next to the Method section, select Restore to an Exchange Recovery Storage Group / Database:
    restoreDatabase.jpg
  5. Click Start Restore. Once the restore is complete, go to Reports > Restore to verify the restore completed successfully. 

Step 2. Microsoft Exchange 2010 Server

  1. Log in to the Exchange 2010 Server as the administrator, and open the Exchange Management Console (EMC) from Start > All Programs > Microsoft Exchange Server > Exchange Management Console. 
  2. In the left pane, expand Microsoft Exchange > Microsoft Exchange On-Premises > Organization Configuration, and click Mailbox:
    emc_01.jpg
  3. In the center pane, click the restored recovery database, and in the right pane, click Mount Database. You can now restore individual mailboxes.

    Each Exchange 2010 server can have only ONE recovery database mounted at a time.

Step 3. Restore Microsoft Exchange 2010 Mailboxes

Once you mount the restored database, you can select to restore a single mailbox or all mailboxes.

Email and appointments newer than the restored data are unaffected by the mailbox restore.

Exchange 2010 (Prior to Exchange 2010 SP1)
Option 1. Restore a Single Mailbox

Use the steps in this option to restore all email to a single mailbox. Note that you must complete Step 1 and Step 2 above before you can restore a single Exchange mailbox.

You must have the name of the restored recovery database to complete these steps. The recovery database usually has the same name as the mailbox database appended with -Recovery.

  1. Log in to the Exchange 2010 Server as the administrator, and select to run the Exchange Management Shell as the administrator; the console opens.
  2. At the prompt, type the following command, and then press Enter:
    Restore-Mailbox -Identity user -RecoveryDatabase recoverydbname

    Where user is the name of the user account you want to restore, and recoverydbname is the name of the recovery database created by the restore job; if a name includes spaces, enclose the name in double quotes (" ").

    For additional examples and parameters, refer to the Microsoft TechNet article Restore-Mailbox. 

  3. Type Y and press Enter to confirm the restore operation. Once the operation is complete, the Exchange Management Shell prompt displays.
  4. Ask the user to verify the mailbox has been restored. 
  5. Once you are done restoring mailboxes, type the following command, and then press Enter:
    Remove-MailboxDatabase -Identity 'recoverydbname'

    A prompt displays indicating the recovery database has been removed. You can now manually remove the associated files.

     

Option 2. Restore All Mailboxes

Use the steps in this option to restore all email to all mailboxes that exist in the specified database as well as the restored recovery database. Note that you must complete Step 1 and Step 2 above before you can restore an Exchange mailbox.

You must have the name of the restored recovery database to complete this option. The recovery database usually has the same name as the mailbox database appended with -Recovery.

  1. Log in to the Exchange 2010 Server as the administrator, and select to run the Exchange Management Shell as the administrator; the console opens.

    This option restores email to all user accounts that exist in the dbname database as well as the recovery database.

  2. At the prompt, type the following command, and then press Enter:
    Get-Mailbox -Database dbname | Restore-Mailbox -RecoveryDatabase recoverydbname

    Where dbname is the name of the mailbox database account to which to restore, and recoverydbname is the name of the recovery database created by the restore job; if a name includes spaces, enclose the name in double quotes (" ").

  3. Type A and press Enter to confirm the restore operation. Once the operation is complete, the Exchange Management Shell prompt displays.
  4. Ask users to verify mailboxes have been restored.
  5. Once you are done, type the following command, and then press Enter: 
    Remove-MailboxDatabase -Identity 'recoverydbname'

    A prompt displays indicating the recovery database has been removed. You can now manually remove the associated files.

     

Exchange 2010 (Exchange 2010 SP1 and Later)
Option 1. Restore a Single Mailbox

Use the steps in this option to restore all email to a single mailbox. Note that you must complete Step 1 and Step 2 above before you can restore a single Exchange mailbox.

You must have the name of the restored recovery database to complete these steps. The recovery database usually has the same name as the mailbox database appended with -Recovery .

  1. Log in to the Exchange 2010 Server as the administrator, and select to run the Exchange Management Shell as the administrator; the console opens.
  2. At the prompt, type the following command, and then press Enter:
    New-MailboxRestoreRequest -SourceDatabase 'recoverydbname' -SourceStoreMailbox 'user' -TargetMailbox 'targetmailboxname' –AllowLegacyDNMismatch  

    Where user is the name of the user account you want to restore, recoverydbname is the name of the recovery database created by the restore job, and targetmailboxname is the name of the mailbox where the mail is to be restored; if a name includes spaces, enclose the name in double quotes (" ").

    For additional examples and parameters, refer to the Microsoft TechNet article New-MailboxRestoreRequest.

  3. Ask the user to verify the mailbox has been restored. 
  4. Once you are done restoring mailboxes, type the following command, and then press Enter:
    Remove-MailboxDatabase -Identity 'recoverydbname'

    A prompt displays indicating the recovery database has been removed. You can now manually remove the associated files.

Option 2. Restore All Mailboxes

Use the steps in this option to restore all email to all mailboxes that exist in the restored recovery database. Note that you must complete Step 1 and Step 2 above before you can restore an Exchange mailbox.

You must have the name of the restored recovery database to complete this option. The recovery database usually has the same name as the mailbox database appended with -Recovery.

  1. Log in to the Exchange 2010 Server as the administrator, and select to run the Exchange Management Shell as the administrator; the console opens.

    This option restores email to all user accounts that exist in the recovery database.

  2. At the prompt, type the following command, and then press Enter:
    foreach($mailbox in Get-MailboxStatistics -Database recoverydbname) {New-MailboxRestoreRequest -SourceDatabase recoverydbname -SourceStoreMailbox $mailbox.DisplayName -TargetMailbox $mailbox.DisplayName}

    Where recoverydbname is the name of the recovery database created by the restore job; if the name includes spaces, enclose the name in double quotes (" ").

    You can enter the command Get-MailboxRestoreRequest to view restore status.

  3. Ask users to verify mailboxes have been restored.
  4. Once you are done, type the following command, and then press Enter:
    Remove-MailboxDatabase -Identity 'recoverydbname'

    A prompt displays indicating the recovery database has been removed. You can now manually remove the associated files.

 

Last updated on