Creating Automated vSphere Backup Environment Using BWeb

The purpose of this wizard is to create an automated configuration whereby all VMs managed by a particular ESXi host or vCenter server are backed up. As new VMs are added, they will automatically be backed up, and as VMs are decommissioned, they will be disabled (or removed) from the backup configuration.

It is possible to exclude VMs from this automatic configuration based on their names, or VM tags, etc., but the steps to do this will come after creation of the default “Backup all VMs” configuration is complete.

On the BWeb main menu, expand “Virtual Machines” and click “VMware Center”. You will be taken to the page with the vSphere Hosts listing, which should currently have at least one vSphere host defined. If there are no hosts in this list, follow the Configuring New vSphere Host article to create one and assign it to a Bacula Client first. Click on the “Backup multiple virtual machines wizard” button on the left.

../../../../../../../_images/01-BWeb-VMware-Center.png

You will be taken to Step 1 of 4 of the Wizard.

Select a vSphere host from the “vCenter/ESXi host” drop-down list.

../../../../../../../_images/02-BWebMultipleStep1of4.png

Click the circular arrows icon to obtain information about the VMs and Storages managed by this vCenter server.

../../../../../../../_images/03-BWebMultipleStep1of4-Info.png

Click “Select objects to backup with VMware resource browser” and you will be presented with a “VMware resource browser” pop-up dialog. Since this “vcenter-65” vSphere host is a vCenter server, there will initially be a top-level “Datacenter” listed. In this case the Datacenter is called “vc8”.

../../../../../../../_images/04-BWebMultipleStep1of4-Resource-Browser.png

Click on the Datacenter icon to reveal the VM, ResourcePool, and Datastore folders.

In this example we will be focusing on backing up all VMs managed by this vCenter server.

../../../../../../../_images/05-BWebMultipleStep1of4-Resource-Browser-VMs.png

Click on the VMs folder icon to see a list of VMs managed by this vCenter host. Do not check any boxes, and simply click the “Apply selection” green check icon.

You will be taken back to the “Create multiple virtual machine backup jobs 1/4” dialog box. Just click “Next” here.

You will be taken to the step 2/4 dialog box where the options for the FileSets to be created may be set.

../../../../../../../_images/06-BWebMultipleStep2of4.png

In the “Fileset Name Template:”, the “%v” will be replaced with the name of each VM found.

Leave the settings at their defaults for now and click “Next”.

You will be taken to the step 3/4 dialog box where the options for the Jobs to be created may be set.

../../../../../../../_images/07-BWebMultipleStep3of4.png

In the “Job Name Template:”, the “%v” will be replaced with the name of each VM found.

Be sure to choose the appropriate Client, Schedule, and Storage for these jobs. If you are performing Incremental or Differential backup of your VMware VMs, then the “Accurate” mode must be enabled, so normally it is recommended to leave this checkbox checked. Click “Next”.

You will be take to the step 4/4 dialog box.

../../../../../../../_images/08-BWebMultipleStep4of4.png

Here, leave the “Execute the Autodiscover Now” checkbox checked, leave the “Push the vSphere Configuration to the Client” Checkbox unchecked, and then check the “Create Admin Job” checkbox - more options will be revealed.

Enter an appropriate “Admin Job Name” and “Description” for the automatic discovery job, then check the “Commit and Reload…” and “Schedule a Daily Update” box - more options will be revealed.

Set the “Schedule” time before your nightly VMware plugin backup jobs are expected to run. This will ensure that the work of creating new Jobs/FileSets for newly discovered VMs and disabling jobs for decommissioned VMs happens before the VMware backup jobs are queued.

Click “Finish”.

After a few seconds, the “Result executing autodiscover now” dialog box will pop up showing what has been done.

../../../../../../../_images/09-BWebMultipleStep4of4-AutodiscoverResults.png

Notice that BWeb has added Jobs and FileSets for All VMs managed by this vCenter server called “vcenter-65”, and there were no existing Jobs/FileSets discovered, and none removed, nor disabled.

At this time, you may click on “Jobs” or “FileSets”, or “Schedules” to see the new resources created by the Autodiscovery process.

Exit configuration mode by clicking on the “BWeb Management Console” at the top left of the main menu.

Expand “Jobs” and click “Next Jobs”. If you had selected a schedule in step 4/4 above, then you should see your new “vsphere_XXXX” jobs in this list of “Next Jobs”.

../../../../../../../_images/10-BWebNextJobs.png

Go back to the main BWeb VMware Center Module page.

Go back to the main vSphere Plugin page.