Back up a VMware ESX Server 3.x Virtual Machine's Files using Consolidated Backup and the ProxyHost iDataAgent

Overview

Before You Begin

Configure the Environment

Create the PreScan and PostBackup Batch Files

ProxyHost iDataAgent Backup of a Virtual Machine - File Backup

Related Topics

 

Overview

The illustration below shows an example of how the ESX Server, Virtual Machine(s), and VCB Proxy Server are configured when using the ProxyHost and Windows File System iDataAgents to back up the files for a VMware Virtual Machine running Windows 2003 Server:

 

Before You Begin

 

Configure the Environment

ESX Server

Virtual Machines

VCB Proxy Server

 

Create the PreScan and PostBackup Batch Files

The PreScan and PostBackup batch files are executed during the backup, to trigger the VMware utilities to create a snapshot of the Virtual Machine's VMFS disk image, and do the following:

For a file backup of a Virtual Machine from the VCB Proxy Server, two batch files are required; the PreScan batch file and PostBackup batch file.

PreScan Batch File – File Backup

For file backups of Virtual Machines with Windows 2003 Server as the guest operating system, create the file prescan.bat in the ..\generic subdirectory referenced above. This batch file will need the following contents:

cd <location of Consolidated Backup installation>\generic

cscript pre-command.wsf <location of Consolidated Backup installation <FQDN of VM to backup> [<backup type>]

where <backup type> is either fullvm or file. Default is file.

Example for file backup:

cd "C:\Program Files\VMware\VMware Consolidated Backup Framework\generic"

cscript pre-command.wsf "C:\Program Files\VMware\VMware Consolidated Backup Framework" "vmsys1.mydomain.com" file

The cscript pre-command.wsf accesses part of the installed Consolidated Backup package and performs the following when prescan.bat is executed:

 

Post Backup Batch File – File Backup

For file backups of Virtual Machines with Windows 2003 Server as the guest operating system, once the backup is completed, the files will need to be unmounted from the VCB Proxy Server. Create the file postbackup.bat in the ..\generic subdirectory referenced above. This batch file will need the following contents:

cd <location of Consolidated Backup installation>\generic

cscript post-command.wsf <location of Consolidated Backup installation> <FQDN of mounted Virtual Machine>

Example:

cd "C:\Program Files\VMware\VMware Consolidated Backup Framework\generic"

cscript post-command.wsf "C:\Program Files\VMware\VMware Consolidated Backup Framework" "vmsys1.mydomain.com"

The cscript post-command.wsf accesses part of the installed Consolidated Backup package and performs the following when postbackup.bat is executed:

 

ProxyHost iDataAgent Backup of a Virtual Machine - File Backup

To perform a file backup of a Virtual Machine with Windows 2003 Server as the guest operating system, perform these steps:

  1. Install both the ProxyHost and the Windows File System iDataAgents on the Virtual Machine; install the Windows File System iDataAgent on the designated VCB Proxy Server running the Consolidated Backup software. For instructions, see Installation.
  2. Create the PreScan and PostBackup batch files if you have not already done so. See Create the PreScan and PostBackup Batch Files.
  3. Create a subclient for the ProxyHost iDataAgent on the Virtual Machine. See Create a New Subclient for instructions and use the following information:

    General Tab:

    Content Tab:

    Pre/Post Process Tab:

    Storage Device Tab:

The following occurs when a backup is performed using the ProxyHost subclient you created.

  1. The PreScan batch file, prescan.bat, will execute on the VCB Proxy Server, proxy.mydomain.com, invoking the VMware vcbMounter utility, which creates a snapshot of the Virtual Machine, then mounts the root file system (C:\) of vmsys1.mydomain.com to C:\mnt\vmsys1.mydomain.com\letters\C on proxy.mydomain.com. The Virtual Machine continues to function normally.
  2. The backup runs on the VCB Proxy Server, proxy.mydomian.com. Note that it does not run on the Virtual Machine, even though the subclient was configured there.
  3. After the backup completes, postbackup.bat executes on the VCB Proxy Server, removing the mount C:\mnt\vmsys1.mydomain.com\letters\C on proxy.mydomain.com, and deleting the snapshot.

NOTES