https://www.youtube.com/watch?v=_LrwjpzzRL8
https://www.ibm.com/support/pages/how-manually-run-tag-based-backup
Test which VM is tagged, previewschedule refer to the TSM schedule vmbackups
C:\Program Files\Tivoli\TSM\baclient>dsmc backup vm -optfile="dsm.VM_TSM_DM.opt" -domain.vmfull="Schedule-Tag" -previewschedule=vmbackups
C:\Program Files\Tivoli\TSM\baclient>dsmc backup vm -optfile="dsm.VM_TSM_DM.opt" -domain.vmfull="Schedule-Tag" -previewschedule=vmbackups IBM Spectrum Protect Command Line Backup-Archive Client Interface Client Version 8, Release 1, Level 8.0 Client date/time: 09/11/2019 14:04:46 (c) Copyright by IBM Corporation and other(s) 1990, 2019. All Rights Reserved. Node Name: VM_TSM_DM Session established with server TSM01: Linux/x86_64 Server Version 8, Release 1, Level 8.000 Server date/time: 09/11/2019 14:04:48 Last access: 09/11/2019 14:04:44 BACKUP VM of virtual machines with Schedule Tag 'VMBACKUPS'. (I) 1.vmName: OrTest tagDataMover: Yes tagDefaultDataMover: VM_TSM_DM onDemand: No dnsName: ENTAPP nodeName: ENTAPP changeTracking: Off vmHWversion: vmx-11 toolsVersion: 10338 toolsVersionStatus: guestToolsSupportedNew toolsRunningStatus: guestToolsRunning consolidationNeeded: No domainKeyword: Schedule-Tag domainSelected: Yes scheduleTagName: VMBACKUPS scheduleTagNameSource: Tag on (Infrastructure as a Service) (group-v1439) vssSnapAttempts: 1 nonVssSnapAttempts: 1 snapAttemptSource: INCLUDE.VMSNAPSHOTATTEMPTS option backupManagementTag: Unassigned backupManagementTagSource: Unassigned managementClassName: STANDARD managementClassSource: Node Default dataMoverTagName: Unassigned dataMoverTagSource: Unassigned vmLocalSnapMgmtTag: Unassigned vmLocalSnapMgmtTagSource: Unassigned vmLocalSnapMgmtName: STANDARD vmLocalSnapMgmtSource: Node Default VMDK[1]Label: 'Hard disk 1' (Hard Disk 1) VMDK[1]Name: '[Datacore_Silver_Disk01] OrTest/OrTest.vmdk' VMDK[1]Status: Included VMDK[2]Label: 'Hard disk 2' (Hard Disk 2) VMDK[2]Name: '[Datacore_Silver_Disk01] OrTest/OrTest_1.vmdk' VMDK[2]Status: Included Total number of virtual machines processed: 1
From one Datamover deploy the new Vmware tags after an upgrade:
dsmc -optfile=dsm_<dm>.opt set vmtags
Command not working with dsmc, only scheduled on TSM server
dsmc backup vm -domain.vmfull="Schedule-Tag" -vmbackuptype=FULLVM -asnodename=<DCNODE> -MODE=IFINCR
Tag name must match TSM server objects, for example if you setup a tag in category management class, it must match the name of the management class, the same for the datamover…
Category | Tag | Tag description |
---|---|---|
Application Protection (IBM Spectrum Protect) | Enabled | Application protection is provided by IBM Spectrum Protect |
Application Protection (IBM Spectrum Protect) | EnabledKeepSqlLog | Protect Microsoft SQL Server and keep log files for in-guest log file management |
Backup Management (IBM Spectrum Protect) | Excluded | The object is always excluded from backups by IBM Spectrum Protect |
Backup Management (IBM Spectrum Protect) | Included | The object is always included in backups by IBM Spectrum Protect |
Data Mover (IBM Spectrum Protect) | Datamover_name | The data mover used for backups in IBM Spectrum Protect |
Data Mover (IBM Spectrum Protect) | Default Data Mover | The default data mover that is assigned to a schedule, if any, is used for backups in IBM Spectrum Protect |
Disk Backup List (IBM Spectrum Protect | Include-Exclude:disk number,disk number,… | The list of virtual disks included or excluded in backups by IBM Spectrum Protect |
Local Backup Management (IBM Spectrum Protect)1 | LocalIncluded | The object is included in local backups on the hardware storage |
Local Backup Management (IBM Spectrum Protect)1 | LocalExcluded | The object is excluded from local backups on the hardware storage |
Local Management Class (IBM Spectrum Protect)1 | Management_class_name | The policy that is used for retention settings for local backups on the hardware storage |
Management Class (IBM Spectrum Protect) | Management_class_name | The policy used for retention settings in IBM Spectrum Protect |
Schedule (IBM Spectrum Protect) | Schedule_name | The schedule to use for backups by IBM Spectrum Protect |
Schedule (IBM Spectrum Protect) | Schedule_group | The schedule group to use for backups by IBM Spectrum Protect |
Snapshot Attempts (IBM Spectrum Protect) | quiesce,nonquiesce | The number of quiesced and nonquiesced snapshots to attempt by IBM Spectrum Protect before the backup fails |
1 This category and tag apply only to virtual machines that are stored in a VVOL datastore.
Use PowerCLI to get all tag for VMs https://pingforinfo.com/powercli-to-create-report-with-vm-tag-category-tools-version-and-vm-hw-version/