Use XML to create a user-defined subclient. You can run the XML from the command line, or automate the configuration by combining the command line operations in a script.
You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.
Before You Begin
Log on to the CommServe host using qlogin command. For instructions, see Qlogin.
Procedure
-
Download the create_subclient_template.xml file to the computer where you will run the command.
-
Open the create_subclient_template.xml file, add your specific parameters, and save the file.
For information on supported instance XML parameters, see Available XML Parameters for Subclient Configuration.
-
On the command line, go to <Software_Installation_Directory>/Base folder, and type the command.
qoperation execute -af create_subclient_template.xml -appName 'Virtual Server' -clientName xxxxx -instanceName xxxxx -backupsetName xxxxx -subclientName xxxxx -vmContent/children/displayName xxxxx -vmContent/children/type VMName -storagePolicyName xxxxxFor example, create subclient subclient1 for client hyperv-client, and assign VM01 virtual machine as the subclient content and associate storage policy storage01.
qoperation execute -af create_subclient_template.xml -appName 'Virtual Server' -clientName hyperv-client -instanceName Hyper-V -backupsetName backupset1 -subclientName subclient1 -vmContent/children/displayName VM01 -vmContent/children/type VMName -storagePolicyName storage01