# Commvault End-User Command Line (cvc) Interface Example: add_subclient

## Name

add_subclient

## Synopsis

add_subclient [-c CLIENTNAME] [-i INSTANCENAME] [-bk BACKUPSETNAME] -sc SUBCLIENT (-d [DIRPATH [DIRPATH ...]] | -f DIRECTIVEFILE) [-ep EXCLUDEPATHS] -dsp DSP

## Description

Add a subclient.

The table lists the options that the software supports.

Note

You must use either the -d option, or the -f option when you create a subclient.

The localadmin user cannot add a subclient.

Option | Description
--- | ---
-c | The CommCell Console client name. This option is mandatory.
-i | The CommCell Console instance name.
-bk | The CommCell Console backup set name.
-sc | The CommCell Console subclient name. This option is mandatory.
-d | The folders to include in backup operations.
-f | The path to a text file on the local host that contains a list of directories to include in backup operations.
-ep | The entries to exclude from backup operations.
-dsp | The data backup storage policy. This option is mandatory.

## Example

### Add a Subclient That Has Multiple Folders

The following command creates a subclient that has multiple folders that are part of the backup operation. In this example, the parameters are listed on the command line.

    cvc> add_subclient -c example_client -bk example_backup_set -sc data_subclient -d '/tmp/data1' '/tmp/data2' -dsp data_storage_policy
    Subclient Creation Completed

### Add a Subclient That Uses The File List

The following command creates a subclient by using the option that points to a text file that contains the directories to include in backup operations. In this example, the parameters are listed on the command line.

    cvc> add_subclient -c example_client -bk example_backup_set -sc data_subclient -f "E:\filelist.txt" -dsp data_storage_policy
    Subclient Creation Completed

The software adds the entries that are in the filelist.txt file to the subclient content. For example, all of the following entries are added.

    /tmp/data1
    /tmp/data2
    /tmp/data3

×

Loading...