Loading...

Backing Up Data for a Windows File System Subclient from the Command Line Interface

To run the backups from the command line interface, you need an input XML file that contains the element values to configure the backup options. This input XML file can be obtained from one of the following ways:

  • Download the input XML file template and save it on the computer from where the backup will be performed.
  • Generate the input XML file from the CommCell Console and save it on the computer from where the backup will be performed.

Procedure

  1. Download the backup_template.xml file and save it on the computer from where the command will be executed.
  2. From the command prompt, go to the <Software_Installation_Directory>/Base and run the following command:

    qlogin -cs <commserve name> -u <user name>

  3. Run the saved .xml script using qoperation execute command.

    qoperation execute -af backup_template.xml -appName 'File System' -clientName xxxxx -backupsetName xxxxx -subclientName xxxxx -backupLevel FULL

  1. Verify the status of the job using the following command:

    qlist job –j JOBID

  2. Once the job completes, logout from the CommServe using the qlogout command.

    qlogout [-cs <commserve_host_name>] [-all] [-tf <tokenfile>] [-tk <token>] [-h]

Examples

Performing a Full Backup

qoperation execute -af backup_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel FULL

Performing an Incremental Backup

qoperation execute -af backup_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel INCREMENTAL

Performing a Synthetic Full Backup When you run a Synthetic Full backup, an incremental backup is automatically ran first to ensure that new data since the last backup is included in the synthetic full.

qoperation execute -af backup_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel SYNTHETIC_FULL