Performing Ad-Hoc Backups

Ad-hoc backups are on-demand backups that allow subclient content to be specified as an external input when starting a backup operation. When you start an ad-hoc backup from the command line, you can specify the content in a directive file.

Before You Begin

  • To perform ad-hoc backups from the command line, you need an input xml file (ad_hoc_backup_template.xml) which contains the parameter values for configuring the backup options. For more information on command line parameters and XML elements, see Command Line - Syntax.

    The 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. For more information on saving operations as scripts, see Save as Script Overview.

  • You must create the following text file to specify where the content is located for ad-hoc backup jobs:

Procedure

  1. Download the ad_hoc_backup_template.xml file and save it on the computer from where the command will be executed.

  2. From Command prompt, navigate to software_installation_directory/Base and run the following command:

    qlogin -cs commserve_host_name -u user_name
  3. Execute the saved .xml script using qoperation execute command.

    qoperation execute -af ad_hoc_backup_template.xml -clientName client_name -backupsetName backup_set_name -subclientName subclient_name -onDemandInputFile absolute_path_to_directive_file.txt
  4. Verify the status of the job using the following command:

    qlist job –j JOBID
  5. Once the job completes, logout from the CommServe using the qlogout command.

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

Example

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

What to Do Next

To restore ad-hoc backup data, perform a restore operation. For more information, see Restoring Data Using the Windows File System Agent.

×

Loading...