Vmenabletemplatebackups
The vmenabletemplatebackups option specifies whether the client backs up VMware template virtual machines when it protects virtual machines in a vCenter server. VMware templates virtual machines cannot be backed up when they are in an ESXi host because ESXi does not support templates.
When this option is enabled, you can include VMware template machines in full VM backup operations. You use the existing Backup VM command and the DOMAIN.VMFULL option to specify the virtual machines to include in the backup operation.
This feature is available only if the client operates as a data mover for IBM Spectrum Protect™ for Virtual Environments: Data Protection for VMware.
Incremental backups are not supported and snapshots are not taken, so you must use MODE=IFFULL. Use MODE=IFFULL to force a new backup of VMware template virtual machines, even if they were not changed since the last backup.
When vmenabletemplatebackups is enabled, any backup process that is initiated by using MODE=IFINCREMENTAL is processed by using MODE=IFFULL. VMware template VMs are included in a backup only if they were changed since the last backup occurred.
With this option enabled, make sure that the vmvstortransport options include NBDSSL or NBD. Using only the SAN or HOTADD transport modes with this option enabled causes backups of the template machines to fail.
Supported clients
This option can be used with supported x86_64 Linux clients.
This option can be used with supported Windows clients.
Options file
You can set this option on the command line, in the client system options file (dsm.sys), client options file (dsm.opt), or on the server in a client options set.
You can set this option on the command line, in the client options file (dsm.opt), or on the server in a client options set.
You can also set it in the preferences editor on the VM Backup tab (select the Backup virtual machine templates option).
Parameters
- No
- Specifies that template virtual machines are not included in full VM backup operations; this is the default setting.
- Yes
- Specifies that template VMs are included in full VM backup operations.
Examples
- Options file
- vmenabletemplatebackups yes
- Command line
- Back up a VMware template VM
where vmname is the template machine name.dsmc backup vm vmname -VMENABLETEMPLATEBACKUPS=YES
- Command line
- Restore a VMware template VM to the same location and name
where vmname is the template machine name.dsmc restore vm vmname -VMENABLETEMPLATEBACKUPS=YES
- Command line
- Restore a template virtual machine to a new location
where vmname is the template machine name. "win7x64" is the new template VM name. The new data center, host, and datastore are also included.dsmc restore vm vmname -vmname=win7x64 -datastore=datastore22 -host=supersht.labx.com -datacenter="Lab Center" -VMENABLETEMPLATEBACKUPS=YES