Back up a VMware ESX Server 3.x Virtual Machine's Disk Image using Consolidated Backup and the Windows File System iDataAgent

Overview

Before You Begin

Configure the Environment

Create the PreScan and PostBackup Batch Files

Windows File System iDataAgent Backup of a Virtual Machine - Full Image Backup

 

Overview

The illustration below shows an example of how the ESX Server, Virtual Machine(s), and VCB Proxy Server are configured when using the Windows File System iDataAgent to back up the full disk image for a VMware Virtual Machine running any operating system:

 

Before You Begin

 

Configure the Environment

ESX Server

Virtual Machines

VCB Proxy Server

 

Create the PreScan and PostBackup Batch Files

For a Full Image backup of a Virtual Machine from the VCB Proxy Server, only one batch files is required; the PreScan batch file. You may optionally choose to create a PostBackup batch file as well, if that would be helpful in your environment.

PreScan Batch File – Full Image Backup

For Full Image backups of Virtual Machines with any 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 Full Image 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" fullvm

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 – Full Image Backup

Unlike the file backup, a Full Image backup does not require any additional actions to be taken once vcbMounter completes a backup of the Virtual Machine. However, you may choose to use a Post Backup script to delete the Full Image backup files from the VCB Proxy Server after the backup has completed, or for some other purpose which meets the needs of your environment.

 

Windows File System iDataAgent Backup of a Virtual Machine - Full Image Backup

To perform a Full Image backup of a Virtual Machine with any guest operating system, perform these steps:

  1. Install the Windows File System iDataAgent on the designated VCB Proxy Server running the Consolidated Backup software. For instructions, see Deployment - Windows File System iDataAgent. It is not necessary to install software on the Virtual Machine.
  2. Create the PreScan and optional PostBackup batch files if you have not already done so. See Create the PreScan and PostBackup Batch Files.
  3. Create a subclient for the Windows File System iDataAgent on the VCB Proxy Server. 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 Windows File System 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, and exports the Virtual Machine disk images to the C:\mnt\vmsys1.mydomain.com-fullVM\ directory on proxy.mydomain.com, along with a limited number of configuration files. (These configuration files are needed by the vcbRestore utility, which is used to restore Full Image backups created by vcbMounter.)
  2. Once vcbMounter has completed exporting the Full Image backup files to the VCB Proxy Server, the contents of the snapshot file are merged back into the Virtual Machine, and the snapshot file is deleted.
  3. The Windows File System iDataAgent backup of the C:\mnt\vmsys1.mydomain.com-fullVM\ directory runs on the VCB Proxy Server, proxy.mydomian.com.
  4. After the backup completes, the C:\mnt\vmsys1.mydomain.com-fullVM\ directory and its contents will remain unless removed manually or via a PostBackup script. A PostBackup script is not required, but if one has been specified, it is executed.

NOTES