installing windows server backup on windows server 2008 r2

23
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.

Upload: poerjava

Post on 24-Sep-2015

61 views

Category:

Documents


0 download

DESCRIPTION

Installing Windows Server Backup on Windows Server 2008 R2

TRANSCRIPT

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 servermanagerPS C:\> Add-WindowsFeature backupWindows Server Backup can now be launched from the Administrative Tools menu.The Windows Server Backup consoleBacking Up an Exchange 2010 Mailbox DatabaseIf 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.

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 Im 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 Im 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 cant 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 resultRestoring 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 $trueIn 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 dont 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 were 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 youre 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: ApplicationSource: MSExchangeISDate: 12/4/2010 8:51:30 PMEvent ID: 9725Task Category: Exchange VSS WriterLevel: InformationKeywords: ClassicUser: N/AComputer: EX2.exchangeserverpro.localDescription: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: ApplicationSource: MSExchangeISDate: 12/4/2010 8:51:40 PMEvent ID: 9756Task Category: Exchange VSS WriterLevel: InformationKeywords: ClassicUser: N/AComputer: EX2.exchangeserverpro.localDescription: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: ApplicationSource: ESEDate: 12/4/2010 8:52:15 PMEvent ID: 301Task Category: Logging/RecoveryLevel: InformationKeywords: ClassicUser: N/AComputer: EX2.exchangeserverpro.localDescription: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: ApplicationSource: MSExchangeIS Mailbox StoreDate: 12/4/2010 8:52:32 PMEvent ID: 9523Task Category: GeneralLevel: InformationKeywords: ClassicUser: N/AComputer: EX2.exchangeserverpro.localDescription: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.edbTransaction Logfiles: C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database EX2 01\Base Name (logfile prefix): E00System 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.