Restoring Data for Windows File System Agent from the Command Line Interface

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

  • Download the input XML file template and save it on the computer from where the restore will be performed.

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

Procedure

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

  2. From command prompt, go to <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 restore_template.xml -appName '$[File System]' -clientName $[xxxxx] -backupsetName $[xxxxx] -destPath $[xxxxx] -sourceItem $[xxxxx]

  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

Restoring from a Current Backup

qoperation execute -af restore_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -destPath 'C:\temp' -sourceItem 'C:\test'

Restoring Files to a Point-in-Time (Date)

qoperation execute -af restore_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -destPath 'C:\temp' -sourceItem 'C:\test' -toTimeValue 2011-11-28

Restoring Files to a Point-in-Time (Date and Time)

qoperation execute -af restore_template.xml -appName 'File System' -clientName client1 -backupsetName backupset1 -destPath 'C:\temp' -sourceItem 'C:\test' -toTimeValue 2011-11-28 15:40:00

Note

Step-by-step restores should be performed from the CommCell Console.

Page contents

×

Loading...