Use the backup vm command to start a full backup of a virtual machine.
Use the backup vm command to back up VMware virtual machines.
One or more virtual machines are processed using the Tivoli® Storage Manager data mover node. Data mover node is the name given to a configuration where the Backup-Archive Client runs on a vStorage backup server and is configured to protect the virtual machines in a Virtual Center or ESX/ESXi server. You must configure the VMware virtual machine before using this command. For information on configuring the VMware virtual machine, see Preparing the environment for full backups of VMware virtual machines.
A full VM backup stores a backup copy of all virtual disk images and configuration information for a virtual machine. Full VM backups enable a complete restore of a virtual machine, but they take more time and more server space than a file-level or incremental backup.
File-level VM backups allow you to individually restore virtual machine files, but it does not have an easy full VM machine recovery procedure. You might want to use a combination of file level VM backups with periodic full VM backups for optimal results. You must be licensed to use Tivoli Storage Manager for Virtual Environments to use the periodic full backup strategy. The periodic full strategy is described in Periodic full backup strategy.
If you set the vmenabletemplatebackups option to yes, a Backup VM operation includes the template VMs, but only if the vStorage backup server is connected to a vCenter Server, and not to an ESX or ESXi host.
Virtual machines deployed in vApps are included in Backup VM operations. There are no client options needed to protect the vApp VMs.
A Full VM backup uses VMware Changed Block Tracking (CBT) to create content-aware (used-block only) backups. Tivoli Storage Manager enables changed block tracking (CBT) on an ESX or ESXi server when a backup begins. VMware CBT requires an ESX 4.1 (or later) host, with virtual hardware 7 (or later). You cannot perform incremental or full VM content-aware backups on virtual machines that do not support CBT.
See Compression, encryption, and adaptive subfile backup processing for more information.
The incremental forever backup strategy is described in Incremental forever strategy.
This command is valid on supported Windows clients that are installed on a vStorage backup server that protects VMware virtual machines.
This command is valid only on supported Linux clients that are installed on a vStorage backup server that protects VMware virtual machines.
.-,------. V | >>-Backup VM------vmname-+--------------------------------------> >--+-------------------------------------------------+--------->< '-:vmdk=-- --disk_label-- -- -PREView-- --options-'
EXCLUDE.VMDISK
For additional ways to include or exclude disks
from processing, see Domain.vmfull, EXCLUDE.VMDISK, INCLUDE.VMDISK.backup vm vm1 -preview
Full BACKUP VM of virtual machines 'VM1'.
1. vmName:vm1
VMDK[1]Label: Hard disk 1
VMDK[1]Name: [ds5k_svt_1] tsmcetlnx14/tsmcetlnx14.vmdk
VMDK[1]Status: Included
VMDK[2]Label: Hard disk 2
VMDK[2]Name: [ds5k_svt_1] tsmcetlnx14/tsmcetlnx14_1.vmdk
VMDK[2]Status: Excluded - user,Independent,pRDM
Return code | Description |
---|---|
0 | A command to back up one or more virtual machines completed successfully. |
8 | A command to back up multiple virtual machines succeeded for only some of the virtual machines that were targeted by the command. Examine the log file to determine the processing status for each of the targeted virtual machines. |
12 | A command was issued to back up one or more virtual machines. The command did not complete for any of the virtual machines that were targeted by the command. Examine the log file to determine the possible reasons for the failure. |
dsmc backup vm vm1 -vmbackuptype=file
dsmc backup vm vm1 -vmbackuptype=file -vmchost=virtctr
dsmc backup vm vm3,vm4 -vmbackuptype=fullvm -mode=ifincremmental
dsmc backup vm vm1 -vmbackuptype=fullvm -mode=iffull
dsmc backup vm "vm1:vmdk=Hard Disk 1" -vmbackuptype=fullvm -mode=iffull
dcmc backup vm "vm1:-vmdk=Hard Disk 1:-vmdk=Hard Disk 4"
-vmbackuptype=fullvm -mode=iffull
dsmc backup vm "vm1:vmdk=Hard Disk 2:vmdk=Hard Disk 3",
vm2 -vmbackuptype=fullvm -mode=iffull
dsmc backup vm –vmmaxparallel=5 –vmlimitperhost=2 –vmlimitperdatastore=0
Use the Backup VM command to create a full VM backup of Hyper-V virtual machines. You can back up Hyper-V guests that exist on a local disk, a SAN-attached disk, or cluster shared volume.
For Hyper-V backup operations, you must specify vmbackuptype=hypervfull. The only supported mode option for Hyper-V backups is mode=full (the mode option is not even examined when you specify vmbackuptype=hypervfull).
For Hyper-V backups, you can specify one or more virtual machine names that you want to back up. Separate the names with commas. If you want to obtain a list of Hyper-V virtual machines that are defined on the Hyper-V server, type a question mark (backup vm ?).
This command is valid on supported Windows clients that are installed on a Hyper-V host server.
>>-Backup VM--vmname--+---------------------+--+---------+----->< | .-,---------------. | '-options-' | V | | +---vmlist=--vmname-+-+ '-vmlist=?------------'
dsmc backup vm VM1 -vmbackuptype=hypervfull
dsmc backup vm -vmbackuptype=hypervfull -vmlist=vm1,vm5
dsmc backup vm vmlist=?
backuptype hypervfull
vmlist vm1,vm2,vm5