Backup
Use this vmcli command to start IFFULL and IFINCREMENTAL backups of your VMs or VM templates.
Syntax
The vmcli -f backup command uses this syntax:
You must issue the vmcli -f backup command
as tdpvmware user, and not as root.Parameters
Before you issue a vmcli -f backup command, issue the vmcli -f inquire_config command to verify that your configuration is correct. Also, use the information from the vmcli -f inquire_config command output as a guide for setting your backup parameters.
When a backup operation is running, there is no command or method available to stop the backup, including the Ctrl + C command. You must wait for the operation to complete on its own.
The vmcli -f backup command requires that the VE_VCENTER_NODE_NAME is set correctly in the vmcliprofile. You cannot overwrite this parameter with a command-line entry.
The data mover system (the vStorage Backup Server where the IBM Storage Protect backup-archive client is installed) must not set the ASNODENAME option.
- -t backupType
- Specify the type of backup to complete. You can choose from one of the following types:
- TSM_IFFULL
- Creates an incremental forever full backup of the specified backup objects. When TSM_IFFULL is specified, template VMs that are unchanged since the last backup are also included.
- TSM_IFINCR
- Creates an incremental forever incremental backup of the specified backup object. This type backs up only the changed data since the last backup. This type is the default.
- -I backupObjectListFile
- Specify the file that contains the list of objects to back up. Each line contains one specification for backup.
- -d datacenternodename | providervDCnodename | organizationvDCnodename
- When the VE_TSM_MODE parameter specifies VSPHERE, specify the datacenter node name.
- -o datamovernodename
- Specify the data mover node name. This name is the node name for the data mover that is installed on the vStorage Backup Server. This node performs the data movement.
- [--name taskName]
- Specify the string that identifies the backup task.
- [--description descriptionInFile.txt]
- Specify the name of the text file that contains a description of the backup task.
- [-s tsmserverhostname]
- Specify the host name or IP address of the IBM Storage Protect server. If this parameter is not specified, the value in the profile is used.
- [-n vmclinodename]
- Specify the VMCLI node name. This node connects the Data Protection for VMware command-line interface to the IBM Storage Protect server and the data mover node. If this parameter is not specified, the value in the profile is used.
- [-p tsmserverport]
- Specify the port of the IBM Storage Protect server.
- If this parameter is not specified in the Data Protection for VMware command-line interface and not specified in the profile, the default port (1500) is used.
- If this parameter is not specified in the Data Protection for VMware command-line interface, but is specified in the profile, the value in the profile is used.
- [-w vmBackupLocation]
- Specifies the location for a VM backup. The location determines whether the VM is backed up on
the IBM Storage Protect server; is persisted as a snapshot on
the hardware storage; or both. You can specify one of the following values:
- SERVER
- VMs are backed up to the IBM Storage Protect server. This value is the default.
- LOCAL
- VMs are backed up on the hardware storage. The backup is a full VM image snapshot, even if the
-t
backupType parameter specifies an incremental backup.
To create a local backup, the VM must be stored in a VMware virtual volume (VVOL) datastore. If any virtual disk of the VM is not in a VVOL datastore, the local backup is not allowed.
Because no network data movement is needed for local snapshots, backup and restore operations can be faster than server backup and restore operations. By restoring from a local snapshot, you can only revert an existing VM to an earlier point in time. You also cannot restore a deleted VM, and you cannot restore a VM to a different name or location.
- BOTH
- VMs are backed up to the IBM Storage Protect server and are also backed up locally. If the -t backupType parameter specifies an incremental backup, this setting applies only to the server backup. The local backup is always a full VM image backup.