emc confidential technical note - dell emc … · emc confidential technical note this technical...

26
EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows with Windows Server Backup to perform offline system recovery. Topics include: Revision history ........................................................................................................ 2 Purpose .................................................................................................................... 2 Task 1: Install Windows Server Backup ...................................................................... 3 Task 2: Create a Windows Server Backup image ........................................................ 3 Task 3: Install the Avamar Client for Windows ............................................................ 8 Task 4: Back up the WSB image to an Avamar server ................................................. 9 Task 5: Perform a system recovery for Windows 2008 from a WSB backup ............... 18 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC ® Avamar ® 6.1 Technical Note P/N 300-014-179 REV A01 July 9, 2012

Upload: phamkhuong

Post on 26-Aug-2018

258 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

EMC CONFIDENTIAL

TECHNICAL NOTE

This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows with Windows Server Backup to perform offline system recovery. Topics include:

◆ Revision history ........................................................................................................ 2◆ Purpose .................................................................................................................... 2◆ Task 1: Install Windows Server Backup...................................................................... 3◆ Task 2: Create a Windows Server Backup image ........................................................ 3◆ Task 3: Install the Avamar Client for Windows............................................................ 8◆ Task 4: Back up the WSB image to an Avamar server ................................................. 9◆ Task 5: Perform a system recovery for Windows 2008 from a WSB backup ............... 18

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC® Avamar®

6.1

Technical NoteP/N 300-014-179 REV A01

July 9, 2012

Page 2: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Revision history

EMC CONFIDENTIAL

Revision history

The following table presents the revision history of this document.

Purpose

This technical note provides the steps to use the EMC® Avamar® Client for Windows in combination with Microsoft Windows Server Backup (WSB) to perform backup and offline disaster recovery of Windows Server 2008 operating systems.

This document is primarily for disaster recovery of uEFI-based systems, which is not currently supported by the Avamar Windows Disaster Recovery Wizard. For non-uEFI systems, use the Avamar Windows Disaster Recovery Wizard, which is described in the EMC Avamar 6.1 for Windows Server User Guide.

This document includes several examples of Microsoft WSB commands. The “Windows Server Backup Command Reference” article http://technet.microsoft.com/library/cc770340.aspx on the Microsoft TechNet website provides a complete list of wbadmin commands and descriptions.

For full access to the Windows Server Backup commands, you must be a member of the Administrators group or Backup Operators group, and you must run the command prompt as an administrator. To run a command prompt as an administrator, click Start > Programs > Accessories, right-click Command Prompt, and then click Run as Administrator.

The following figure illustrates the tasks to prepare for a disaster and then perform disaster recovery.

Revision Date Description

A01 July 9, 2012 First release of this Technical Note

Windows Server 2008 Offline Disaster Recovery for UEFI-based Systems, Using Windows Server Backup

Task 1: Add Windows Server Backup Features in Windows Server Manager

Task 2: Create a Windows Server Backup image for system disaster recovery

Task 3: Download and install the Avamar Windows Client

Task 4: Back up the WSB image with Avamar to an Avamar server

PerformingBackups Before

Disaster

PerformingRecovery After

DisasterTask 5: Perform system recovery for Windows Server 2008 from a WSB backup

Disaster Event Occurs!

2 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 3: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 1: Install Windows Server Backup

EMC CONFIDENTIAL

Task 1: Install Windows Server Backup

Windows Server Backup is not a part of the default Windows operating system installation. You can install Windows Server Backup either from the command line or using the Windows Server Manager.

Installing Windows Server Backup from the command line

To install Windows Server Backup from the command line:

1. Log in to the Windows Server 2008 machine with an account with Administrators group privileges.

2. Click Start > Programs > Accessories, right-click Command Prompt, and then click Run as Administrator.

3. At the command prompt, type the following command:

servermanagercmd -install Backup-Features

Installing Windows Server Backup using the Windows Server Manager

To install Windows Server Backup using the Windows Server Manager:

1. Log in to the Windows Server 2008 machine with an account with Administrators group privileges.

2. Click Start > Programs > Server Manager.

3. Click Features in the left navigation pane.

4. If WSB is not listed in the Features Summary window, select Add Features.

The Add Features Wizard appears.

5. In the Select Features window, select Windows Server Backup Features, and then click Next.

6. Click Install.

7. Close the window when the installation completes.

Task 2: Create a Windows Server Backup image

You can use either the WSB command line tool (wbadmin.exe) or the WSB wizard to create a backup image for system disaster recovery.

You can also automate backups by creating scripts that incorporate wbadmin commands, and then using those scripts in an Avamar dataset.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 3

Page 4: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 2: Create a Windows Server Backup image

EMC CONFIDENTIAL

Creating a Windows Server Backup image from the command line

You can create a backup image from the command prompt using either a local drive or a UNC format remote drive. The drive must have enough disk space for the sum of all the space used on the critical volumes. If you use a remote drive, you must supply the username and password at the command line.

Creating a backup image on a local drive from the command line

To create a backup image on a local drive from the command line, type the following command:

wbadmin start backup -backupTarget:drive -allCritical -quiet

where drive is the drive letter on which to create the backup image. The drive cannot be a locally mapped network share.

The -allCritical option instructs the wbadmin.exe command to back up all critical volumes of the system. A critical volume is defined as any volume that has system critical data, or any part of them, installed, as well as any volume that has Windows services installed.

The -quiet option is required to run in non-interactive mode.

The following example command creates a backup image on the E:\ drive:

wbadmin start backup -backupTarget:E: -allCritical -quiet

Creating a backup image on a remote shared folder from the command line

To create a backup image on a remote shared folder from the command line, type the following command:

wbadmin start backup -backupTarget:target -allCritical -user:username -password:password -quiet

where:

◆ target is the remote shared folder. The target cannot be a locally mapped network share.

◆ username and password are the username and password, respectively, of the account to use for access the remote shared folder.

The -allCritical option instructs the wbadmin command to back up all critical volumes of the system. A critical volume is defined as any volume that has System States, or any part of them, installed, as well as any volume that has Windows services installed.

The -quiet option is required to run in non-interactive mode.

The following example command creates a backup image in the WSBShare folder on a server with an IP address of 10.0.0.1:

wbadmin start backup -backupTarget:\\10.0.0.1\WSBShare -allCritical -user:administrator -password:password -quiet

4 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 5: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 2: Create a Windows Server Backup image

EMC CONFIDENTIAL

Using a script file to create a backup image

You can create a script file to create a backup image, and then use that file as part of an Avamar dataset to automate WSB image creation, as described in “Automating WSB image creation and backup to an Avamar server” on page 16.

1. Create a .bat file, and save it in the avamar/var/scripts directory on the Windows server to back up.

2. In the .bat file, add a backup command as described in one of the following topics:

• “Creating a backup image on a local drive from the command line” on page 4

• “Creating a backup image on a remote shared folder from the command line” on page 4

3. At the end of the .bat file, add the following command:

exit %ERRORLEVEL%

The exit line returns the result of the Avamar backup job. If the result is a value other than zero, then the backup reports as FAILED.

Creating a Windows Server Backup image from the Windows Server Backup wizard

To create a backup image from the Windows Server Backup wizard:

1. Open the Start menu and select Administrative Tools > Window Server Backup.

2. From the Action menu of the WSB wizard, select Backup Once to start the Backup Once Wizard.

3. On the Backup Options page, click Next.

4. On the Select backup configuration page, select Full server (recommended), and then click Next.

5. On the Specify destination type page, select the destination for the backup image:

• Select Local drives to create the backup image on a local drive that is a non-critical volume.

• Select Remote shared folder to create the backup image on a remote shared folder.

The destination must have enough disk space for the sum of all space used on the critical volumes.

6. Click Next on the Specify destination type page.

7. Select the target drive:

• If you are creating the backup image on a local drive, then select the drive on the Select backup destination page.

• If you are creating the backup image on a remote shared folder, then specify the path of the shared folder on the Select remote folder page, and leave all other options at their default settings. The path should use the format \\Server\Folder.

8. Click Next.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 5

Page 6: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 2: Create a Windows Server Backup image

EMC CONFIDENTIAL

9. On the Specify advanced option page, select VSS copy backup (recommended) and click Next.

10. On the Confirmation page, click Backup.

11. When the backup is complete, click Close on the Backup progress page.

Backup image files produced by Windows Server Backup

All WSB backups are stored on the target drive in a WindowsImageBackup folder. The following example lists the files in a typical full backup:

E:\WindowsImageBackup->ExampleServer

CatalogBackupGlobalCatalogGlobalCatalog

MediaId->Backup <2012-06-11 xxxxxx

71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_AdditionalFilesc3b9f3c7-5e52-4d5e-8b20-19adc95a34c7.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Components.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_RegistryExcludes.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writer4969d978-be47-48b0-b100-f328f07ac1e0.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writer4dc3bdd4-ab48-4d07-adb0-3bee2926fd7f.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writer542da469-d3e1-473c-9f4f-7847f01fc64f.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writera6ad56c2-b509-4e6c-bb19-49d8f43532f0.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writerafbab4a2-367d-4d15-a586-71dbb18f8485.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writerbe000cbe-11fe-4426-9c58-531aa6355fc4.xml71c87636-c2e2-4ef2-9b97-ddf0ba7c0b5f_Writere8132975-6f93-4464-a53e-1050253ae220.xmlf9208a0c-f7c3-11dd-bee7-806e6f6e6963.vhd

Viewing available backups and content

The WSB wbadmin tool provides several commands that enable you to locate backups and view their contents. You can then use the results to identify the necessary backup to use for a restore.

Viewing a list of backups

The wbadmin get versions command lists the backups that you can recover either from the local computer or from a different computer, if one is specified. The output includes the following information for each backup:

◆ The time at which the backup occurred

◆ The location in which the backup was created, which is either a local drive or a remote shared folder

◆ The version identifier for the backup

◆ Whether the backup includes volumes, files, applications, Bare Metal Recovery, or System State data for recovery

6 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 7: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 2: Create a Windows Server Backup image

EMC CONFIDENTIAL

In the following example, the wbadmin get versions command lists three WSB backups that are available on the local computer:

C:\Windows\system32>wbadmin get versionswbadmin 1.0 - Backup command-line tool(C) Copyright 2004 Microsoft Corp.Backup time: 5/22/2012 11:25 AMBackup location: Network Share labeled

\\bv-rcserver2.belred.legato.com\wsbshareVersion identifier: 05/22/2012-18:25Can recover: Volume(s), File(s), Application(s), Bare Metal Recovery,

System StateBackup time: 5/22/2012 4:49 PMBackup location: Network Share labeled

\\bv-rcserver2.belred.legato.com\wsbshare\WindowsImageBackupVersion identifier: 05/22/2012-23:49Can recover: Volume(s), File(s), Application(s), Bare Metal Recovery,

System StateBackup time: 5/23/2012 4:19 PMBackup target: 1394/USB Disk labeled E:Version identifier: 05/23/2012-23:19Can recover: Volume(s), File(s), Application(s), Bare Metal Recovery,

System StateSnapshot ID: {a449e0dc-47b6-4799-98eb-dab7f7d07219}

Viewing the contents of a backup

The wbadmin get items command lists the following information for the specified backup:

◆ The volumes included in the backup

◆ Information about each volume

◆ What you can recover from that volume

In the following example, the wbadmin get items command lists information for the 05/23/2012-23:19 backup:

C:\Windows\system32>wbadmin get items -version:05/23/2012-23:19wbadmin 1.0 - Backup command-line tool(C) Copyright 2004 Microsoft Corp.Volume ID = {f33ca532-be94-11de-b260-806e6f6e6963}Volume 'System Reserved', mounted at <not mounted> ('System Reserved',

mounted at <not mounted> at the timethe backup was created)Volume size = 100.00 MBCan recover = Full volumeVolume ID = {f33ca533-be94-11de-b260-806e6f6e6963}Volume '<Unlabeled Volume>', mounted at C:Volume size = 39.90 GBCan recover = Full volumeApplication = RegistryComponent = Registry (\Registry)C:\Windows\system32>

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 7

Page 8: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 3: Install the Avamar Client for Windows

EMC CONFIDENTIAL

Task 3: Install the Avamar Client for Windows

Installing the Avamar Client for Windows

Install the Avamar Client for Windows on the machine where the WSB image is located:

• If you store WSB images on the local drive, then install the Avamar Client for Windows on the Windows Server 2008 machine.

• If you store WSB images on a remote shared folder, then install the Avamar Client for Windows on the machine that hosts the shared folder.

To install the Avamar Client for Windows:

1. Log in to the client computer with an account that has Administrator privileges.

2. Open a web browser and go to the following URL:

http://AVAMARSERVER

where AVAMARSERVER is the network hostname (as defined in DNS) or IP address of the Avamar system.

You are automatically redirected to the Avamar secure web server.

Depending on the browser security settings, a security alert dialog box might appear.

3. If a security alert dialog box appears, click Yes or OK to allow redirection to the Avamar secure web server.

The Secure Log On page appears.

4. Page down and then click the Documents and Downloads hyperlink.

The Documents and Downloads page appears.

5. Scroll down the Downloads list to the Windows operating system links.

6. Under Windows for x86 (64 bit), click the Microsoft Windows XP, 2003, Vista, 2008, 7, 2008 R2 hyperlink.

A directory listing appears.

7. Select the AvamarClient-windows-x86_64-VERSION.msi install package, where VERSION is the client version that you are installing.

The browser prompts you to either run the file or save it to the local computer.

8. Start the installer, using one of the following sets of steps, depending on whether the User Account Control (UAC) feature is enabled on the computer:

• If UAC is disabled, open the file in place on the server, or download the file to a temporary directory on the computer, and then open the file.

• If UAC is enabled, perform the following steps:

a. In Windows, right-click the Command Prompt icon and select Run as administrator.

8 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 9: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

b. In the command prompt window, change the working directory to the location of the installation package.

cd INSTALL_PATH

where INSTALL_PATH is the full path of the temporary directory that contains the installation package.

c. On a single line, type the following command to launch the installer:

msiexec /i AvamarClient-windows-x86_64-VERSION.msi

where VERSION is the version number of the available install package.

UAC is designed to provide additional operating system security by preventing software from being installed with administrator privileges, unless an administrator authorizes the elevated privileges.

The installation wizard appears.

9. Follow the instructions to proceed through the wizard.

10. Click Finish.

The EMC Avamar 6.1 for Windows Server User Guide provides instructions for downloading, installing, and activating the Avamar Client for Windows.

Task 4: Back up the WSB image to an Avamar server

This section describes several options for backing up a WSB image to an Avamar server:

◆ “Manually backing up the WSB backup image to an Avamar server” on page 9

◆ “Scheduling a backup of the WSB backup image to an Avamar server” on page 11

◆ “Automating WSB image creation and backup to an Avamar server” on page 16

Manually backing up the WSB backup image to an Avamar server

To manually back up the WSB backup image to an Avamar server:

1. In Avamar Administrator, click the Backup & Restore launcher button.

The Backup and Restore window appears.

2. In the clients tree, select the Avamar client where the WSB image is located.

3. Click the Select for Backup tab.

A list of plug-ins installed on the selected client appears in the left pane of the Select for Backup tab.

4. Select the Windows File System plug-in.

A list of directories on the client appears in the right pane of the Select for Backup tab.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 9

Page 10: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

5. Select the checkbox next to the WindowsImageBackup folder.

6. Select Actions > Back Up Now.

The On Demand Backup Options dialog box appears.

7. Select the backup retention setting and encryption method.

8. Click OK.

The On Demand Backup Options dialog box closes and the following status message appears: Backup initiated.

9. Click OK.

10 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 11: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

Scheduling a backup of the WSB backup image to an Avamar server

This section provides instructions for scheduling a backup of the WSB backup image. The EMC Avamar Administration Guide provides more comprehensive information about creating datasets, schedules, and groups.

To schedule a backup of the WSB backup image, complete the following tasks:

Creating a dataset

To create a dataset that includes the WindowsImageBackup folder:

1. In Avamar Administrator, select Tools > Manage Datasets.

The Manage All Datasets dialog box appears.

2. In the clients list, select clients, and then click New.

Table 1 Backup scheduling tasks

Task Notes

“Creating a dataset” on page 11 Create a dataset that includes the WindowsImageBackup folder.

“Creating a schedule” on page 13

When you schedule the backup of the WindowsImageBackup folder in Avamar, ensure that it starts after the WSB backup completes. It may be difficult to synchronize these two events because the WSB backup time can vary greatly. In those cases, automate the WSB image creation and Avamar backup as described in “Automating WSB image creation and backup to an Avamar server” on page 16.

“Creating a group for the backups” on page 14

When you create the group, select the dataset that includes the WindowsImageBackup folder.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 11

Page 12: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

The New Dataset dialog box appears.

3. Specify a name for this dataset.such as EFI_Backup.

4. On the Source Data tab, select Enter Explicitly.

5. In the Select Plug-In Type list, select Windows File System.

6. Select Select Files and/or Folders and click the browse (...) button.

7. In the Select Files and/or Folders dialog box, select the Avamar client where the WSB image is located and then select the WindowsImageBackup folder in the file system tree view, similar to the following figure.

8. Click OK.

9. In the large list under the “+” and “-” buttons, remove all items that you do not want included in this dataset.

12 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 13: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

The dataset should look similar to the following figure, listing only the WindowsImageBackup folder.

10. Click OK.

The Manage All Datasets dialog box lists the new dataset.

Creating a schedule

To create a schedule to be used for backing up the WSB image:

1. In Avamar Administrator, select Tools > Manage Datasets.

2. On the Tools menu, select Manage Schedules.

The New Schedule dialog box appears.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 13

Page 14: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

3. Specify the appropriate backup scheduling options.

The EMC Avamar 6.1 Administration Guide provides extensive information about using, creating, editing, and copying schedules.

Creating a group for the backups

Create a new group which uses the dataset created in the previous procedure

To create a new group

1. In Avamar Administrator, click Action > New Group.

The New Group dialog box is displayed.

2. Enter a name for the group and make sure the Disabled check box is cleared.

3. Click Next.

The Select An Existing Dataset page is displayed.

14 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 15: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

4. In the Select An Existing Dataset list, select the dataset created in “Creating a dataset” on page 11 and then click Next.

The Select An Existing Schedule page is displayed.

5. From the Select an Existing Schedule list, select the WSB schedule and then click Next.

6. On the Retention Policy page, click Next to accept the defaults.

The Select clients to include in the group page is displayed.

7. Select the domain with the desired client in the left tree pane, then select the appropriate client in the list on the right.

8. Click Finish to create the new group.

To use an Avamar scheduled backup, it is important that the WSB backup is scheduled to complete before the start time of the Avamar scheduled backup. It may be difficult to synchronize these two events, because the WSB backup time can vary greatly. In those cases, automate the WSB image creation and Avamar backup as described in “Automating WSB image creation and backup to an Avamar server” on page 16.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 15

Page 16: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

Automating WSB image creation and backup to an Avamar server

The use of a UNC path in the dataset to specify the location of the remote WSB image to back up is supported in Avamar 5.0 and later clients.

To automate WSB image creation and backup to an Avamar server:

1. Install the Avamar Client for Windows on the machine where the WSB images will be located, and activate the client with the Avamar server, as described in “Task 3: Install the Avamar Client for Windows” on page 8.

2. Create a shared folder on the client machine for the WSB images.

3. Create a script in C:\Program Files\avs\etc\scripts with an extension of .bat, .vbs or .js that calls the wbadmin.exe program and creates the WSB image. “Creating a Windows Server Backup image from the command line” on page 4 provides the syntax for the command.

You must add this script to the ...\scripts folder on each client you are backing up.

4. (Optional) Create a script in C:\Program Files\avs\etc\scripts that deletes the WSB images. This script is called after Avamar backs up the WSB image to the Avamar server.

If the WSB image is created on a network share, the script can delete the WindowsImageBackup folder. However, if the WSB is created on a local drive of the source client, then the script may also need to delete the VSS snapshots.

If you use this script, you must add it to the ...\scripts folder on each client you are backing up.

5. In Avamar Administrator, select Tools > Manage Datasets.

6. Click New to create a dataset for scheduled backups of the Windows client where the WSB images are located.

7. Type a name for the dataset.

8. On the Source Data tab of the New Dataset dialog box, select the Windows File System plug-in and specify the full UNC path to the folder for the WSB images.

9. Select the Options tab.

10. In the Select Plug-in Type list, select Windows File System.

11. Select the Show Advanced Options checkbox.

12. Scroll to display the Pre-Script options.

16 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 17: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 4: Back up the WSB image to an Avamar server

EMC CONFIDENTIAL

13. In Run user-defined script at beginning of backup, type the name of the script from step 3 on page 16 that creates the WSB image.

14. Select the Abort backup if script fails checkbox.

15. Scroll to display the Post-Script options.

16. In Run user-defined script at end of backup, type the name of the script that was created in step 4 on page 16 that deletes the WSB image.

17. Select the Exit process with script failure exitcode check box.

18. Click OK.

19. Create a schedule for the backups as described in “Creating a schedule” on page 13.

20. Create a group for the backups, as described in “Creating a group for the backups” on page 14. When you create the group, select the dataset that includes the WindowsImageBackup folder. The EMC Avamar Administration Guide provides instructions on creating groups.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 17

Page 18: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

To perform disaster recovery for Windows Server 2008 from a WSB backup image:

1. Ensure that the hardware on the restored system is identical to the hardware on the system where the backups were performed.

The Microsoft KnowledgeBase article 249694, “How to move a Windows installation to different hardware” http://support.microsoft.com/kb/249694, available on the Microsoft Support website provides more details on hardware requirements for recovery.

1. In Avamar Administrator, click the Backup & Restore launcher button.

The Backup and Restore window appears.

2. In the clients tree, select the Windows server or client you want to recover.

3. Click the Select for Restore tab.

4. Click the By File/Folder tab.

5. In the Enter path to retrieve history for text box, type the path or browse to the WindowsImageBackup folder.

6. Click Retrieve.

7. Select the folder version in the Version History table.

8. Select the backup to restore from the Backups table.

9. Select the image file to restore from the Contents of Backup pane at the bottom of the Select for Restore tab.

The following image provides an example of the WindowsImageBackup folder selected for restore.

10. Select Actions > Restore Now.

18 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 19: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

The Restore Options dialog box appears.

11. In the Restore Destination Client box, click Browse.

The Browse for Restore Client dialog box appears.

12. Browse to and select the destination client.

13. Click OK.

14. From the Restore Plug-in Type list, select Windows File System.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 19

Page 20: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

15. In Restore Destination Choices, select Restore everything to a different location.

16. Click Set Destination.

The Set Destination dialog box appears.

17. Specify where to save the items to:

Enter the destination in Save Target(s) in Directory.

-or-

20 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 21: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

Click Browse, and in the Browse for File, Folder, or Directory dialog box, and select the Windows File System plug-in in the left pane. You can browse and select down to the folder level in the left pane, and browse and select down to the file level in the right pane.

18. Click OK to close the Browse for File, Folder, or Directory dialog box.

19. Click OK to close the Set Destination dialog box.

When redirecting a restore to a different location, restoring a single directory to the new location only restores the contents of the directory. The original parent directory is not restored as part of this operation. However, if you restore two or more directories to a new location, then the original parent directories are restored along with the contents of those directories.

20. After specifying the restore destination, click More Options.

The Restore Command Line Options - Windows File System dialog box appears.

21. Set additional plug-in options if desired.

The EMC Avamar 6.1 for Windows Server User Guide provides detailed information about plug-in options.

22. Click OK to close the Restore Command Line Options dialog box.

23. Click OK to close the Restore Options dialog box.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 21

Page 22: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

The Restore Options dialog box closes and the Restore Request message box appears, displaying the following messages:

Restore request initiatingRestore request initiated.

24. Click Close.

25. Configure the new machine to be bootable from a DVD by changing the BIOS setting, if necessary.

An alternative to booting from a Windows Server 2008 bootable DVD is to boot from Windows PE. This enables you to create a boot disk that is more customized for a particular configuration. The Microsoft TechNet article “Walkthrough: Boot Windows PE from a UEFI-based Hard Disk” http://technet.microsoft.com/en-us/library/hh265131(v=ws.10) provides steps for this boot method.

26. Boot the machine into installation mode using a Windows 2008 boot DVD.

27. At the initial Windows installation screen, click Next.

28. On the second screen, click Repair your computer. This initiates WinRE (Recover Environment).

22 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 23: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

29. When the System Recovery Option dialog box appears, click Command Prompt to open a command window.

The command prompt is used later in this procedure.

30. Return to the System Recovery Options dialog box and click Windows Complete PC Restore.

The following error message appears.

31. Click Cancel.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 23

Page 24: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

32. On the Windows Complete PC Restore page, select Restore a different backup and then click Next.

33. On the Select the location of the backup page, click Advanced.

34. Click Search for a backup on the network.

The first time you select this option, a security confirmation window appears. Click Yes to continue.

When the search completes, the Specify the location dialog box appears.

35. Click Cancel.

36. Return to the command prompt and type:

netsh interface ipv4 show interfaces

All available network interfaces appear.

37. If the Local Area Connection is not listed, install the network driver provided by the manufacturer. You can use the Install a driver link on the Windows Complete PC Restore Advanced dialog box.

38. Configure the Local Area Connection to use the same static IP address as the original machine by typing the following at the command prompt:

start /w wpeinit

39. Specify the adapter to use by typing the following at the command prompt:

netsh interface ipv4 set address name = "idx" source=static address=<static_IP mask=subnet_mask gateway=default_gateway

For example:

netsh interface ipv4 set address name="2" source=static address=10.5.221.175 mask=255.255.255.0 gateway=10.5.221.1

24 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note

Page 25: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

The Microsoft TechNet article “Netsh commands for Interface Internet Protocol version 4 (IPv4)” http://technet.microsoft.com/en-us/library/cc731521(v=ws.10) provides detailed information about this command and parameters.

40. Return to the Windows Complete PC Restore page and repeat step 32 and step 33 .

41. In the Specify the location dialog box, type the location of the share with the WSB backup and click OK.

You must specify the complete path of the shared folder that is the immediate parent folder of the WindowsImageBackup folder.

42. Log in to the network if required.

43. On the Select the location of the backup page, select the WSB backup image and click Next.

44. On the Select the backup to restore page, select the date and time of the WSB image backup and click Next.

45. On the Choose how to restore the backup page, select Format and repartition disks and click Next.

A confirmation message appears.

46. Select I confirm that I want to format the disks and restore the backup and click OK.

47. Click Finish.

48. After the restore completes, which can take an hour or more, reboot the machine. It eventually reboots on its own, if necessary.

49. Proceed with other VSS application restores as necessary.

Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note 25

Page 26: EMC CONFIDENTIAL TECHNICAL NOTE - Dell EMC … · EMC CONFIDENTIAL TECHNICAL NOTE This technical note explains how to install and use the EMC Avamar 6.1 Client for Windows ... provides

Task 5: Perform a system recovery for Windows 2008 from a WSB backup

EMC CONFIDENTIAL

Copyright © 2002 - 2012 EMC Corporation. All rights reserved. Published in the USA.

Published July, 2012

EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.

The information in this publication is provided as is. EMC Corporation makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software license.

EMC2, EMC, and the EMC logo are registered trademarks or trademarks of EMC Corporation in the United States and other countries. All other trademarks used herein are the property of their respective owners.

For the most up-to-date regulatory document for your product line, go to the technical documentation and advisories section on EMC Online Support.

26 Windows Server 2008 Offline System Recovery Using Windows Server Backup with EMC Avamar Technical Note