Using Multiple vSphere Servers
You may specify multiple vSphere servers in the vsphere_global.conf
file. When using this feature, you will need to specify the
server=xxx
option in the Plugin Command line.
If you have access to BWeb and would like to use it to configure the
connection to VMware infrastructure and to configure your backup jobs,
skip ahead to BWeb VMware Center Module.
You may also use the CLI automated configuration tool starting with
version 12.8.0 in Automated Configuration.
Click here (recommended to open in a new tab)
to see all available directives for the vsphere_global.conf
file.
It is also mandatory to specify a unique root_directory for each section so that information about VMs from one vCenter or ESXi server is not overwritten with information from a different one.
% cat /opt/bacula/etc/vsphere_global.conf
[vsphere]
username = root
password = vspherepassword
server = 192.168.0.1
url = https://192.168.0.1/sdk
thumbprint = 01:F5:0F:10:82:59:EF:2D:DB:96:CC:5B:C4:66:33:83:DC:91:AF:01
default_datastore = datastore1
default_restore_host = esx1
root_directory = /opt/bacula/working/vsphere
[other]
username = root
password = vspherepassword
server = 192.168.0.2
url = https://192.168.0.2/sdk
thumbprint = 02:F5:0F:10:82:59:EF:2D:DB:96:CC:5B:C4:66:33:83:DC:91:AF:01
default_datastore = abigdatastore
root_directory = /opt/bacula/working/other
vddk_backup_transport_mode = san:nbdssl
vddk_restore_transport_mode = san:nbd
[secure]
username = root
hpassword = MTEyOjEyNzoGAwAYFQIVABEDAwcfAhQA
server = 192.168.0.3
url = https://192.168.0.3/sdk
thumbprint = 03:F5:0F:10:82:59:EF:2D:DB:96:CC:5B:C4:66:33:83:DC:91:AF:01
default_datastore = abigdatastore
root_directory = /opt/bacula/working/secure
The [vsphere]
section is optional in the vsphere_global.conf
file. If not present, make sure the –server options is always
used for backup (or vsphere-ctl operations).
% cat /opt/bacula/etc/conf.d/FileSet-other.conf
FileSet {
Name = FileSet-other
Include {
Plugin = "vsphere: server=other"
}
}
% /opt/bacula/bin/vsphere-ctl --server other update
1: 1 vm1
2: 2 vm2
Click here to see all the vSphere Fileset plugin command options.
See also
Go back to:
Go to:
Go back to the main vSphere Plugin Configuration page.
Go back to the main vSphere Plugin page.