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

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

    qlist job –j JOBID
  5. After the job completes, run the qlogout command to log off the CommServe computer.

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

Performing an Ad-Hoc Backup

The first ad-hoc backup is always a full backup. The subsequent ad-hoc backup jobs run as incremental jobs. For more information about ad-hoc backup jobs, see Ad-Hoc Backups.

qoperation execute -af ad_hoc_backup_template.xml -clientName client1 -backupsetName backupset1 -subclientName subclient1 -onDemandInputFile E:\directive1.txt

Loading...