Name
create subclient
Synopsis
subclient [-h] -create -c CLIENTNAME [-a AGENTNAME] [-bk BACKUPSETNAME] -sc SUBCLIENTNAME [-path PATH] [-excludepath EXCLUDE_PATH] [-dsp DSP] [-overwrite {True,False}] [-i INSTANCENAME] [-k KEY] [-tf TOKENFILEPATH]
Note
In some cases the subclient name may require the use of double quotes " " rather than single quotes ' ' as shown in the command above and examples below.
Description
Create a subclient.
The table lists the options that the software supports.
|
Option |
Description |
|---|---|
|
-c |
The CommCell Console client name. This option is mandatory. |
|
-a |
The Commvault agent name. |
|
-i |
The instance name. |
|
-bk |
The CommCell Console backup set name. |
|
-sc |
The CommCell Console subclient name. This option is mandatory. |
|
-path |
The path to the directories to include in backup operations. |
|
-excludepath |
The entries to exclude from backup operations. |
|
-dsp |
The data backup storage policy. This option is mandatory. |
|
-overwrite {True,False} |
Option to overwrite files. |
|
-k |
The 16-character encryption key. |
|
-tf |
Read token from a file. |
|
-h,--help |
Displays help. |
Example
Create a Subclient That Has Content and Filters
The following command creates a subclient that has content and filters for the backup operation. In this example, the parameters are listed on the command line.
python3 cvc.py subclient -create -c example_client -sc "MySubclient" -path "/QSYS.LIB/APP1.LIB" –path "/QSYS.LIB/APP2.LIB" –excludepath "/QSYS.LIB/APP2.LIB/OUTQ1.OUTQ" -dsp "MyStoragePcy" -tf objfile
The software creates the subclient with the following contents:
[‘/QSYS.LIB/APP1.LIB’ ‘/QSYS.LIB/APP2.LIB’]