Scenario: Including four disks for backup processing

Use the include.vmdisk and domain.vmfull options to include four virtual machine disks for backup services.

About this task

In the following examples, virtual machine vm5_fin_com contains four disks:
Hard Disk 1
Hard Disk 2
Hard Disk 3
Hard Disk 4

Procedure

  1. Start a data mover command-line session:
    • Windows operating systemsOpen a command prompt and change to the data mover installation directory. For example:
      cd "C:\Program Files\IBM\StorageProtect\baclient"
    • Linux operating systemsOpen a terminal window and change to the data mover installation directory. For example:
      cd /opt/tivoli/tsm/client/ba/bin
  2. Use the include.vmdisk statement to back up disks Hard Disk 1 and Hard Disk 2.
    For example:
    INCLUDE.VMDISK vm5_fin_com "Hard Disk 1"
    INCLUDE.VMDISK vm5_fin_com "Hard Disk 2"
  3. Issue the backup command:
    dsmc backup vm vm5_fin_com
    Because an include disk statement is specified, this statement implies that only disks specifically included are backed up. As a result, Hard Disk 3 and Hard Disk 4 are not backed up.
  4. Use the domain.vmfull statement to back up disks Hard Disk 1 and Hard Disk 2:
    For example:
    DOMAIN.VMFULL "vm5_fin_com:vmdk=Hard Disk 1:vmdk=Hard Disk 2"
  5. Issue the backup command:
    dsmc backup vm vm5_fin_com
    Hard Disk 3 and Hard Disk 4 are not backed up.
    You can include or exclude one or more disks with a domain.vmfull statement. You can specify include and exclude on the same statement. For example, the following statement is valid:
    
    domain.vmfull "vm5_fin_com:vmdk=Hard Disk 1:-vmdk=Hard Disk 2:vmdk=Hard 
    Disk 3:vmdk=Hard Disk 4"
    If an include statement is present, it causes all other disks in the virtual machine to be excluded from a backup operation, unless the other disks are also specified with an include statement. For example, the following statement excludes all disks except for Hard Disk 1:
    domain.vmfull "vm5_fin_com:vmdk=Hard Disk 1"