To restore data 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 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 instructions to generate the XML script, see Generating a Restore Command Line Script from the CommCell Console.
Before You Begin
Log on to the CommServe host using qlogin command. For instructions, see Qlogin.
Procedure
-
Download the restore_template.xml file and save it on the computer from where the command will be executed.
-
On the command line, go to software_installation_directory/Base folder, and type the command after substituting the parameter values.
qoperation execute -af restore_template.xml -appName 'Virtual Server' -clientName xxxxx -backupsetName xxxxx -destPath xxxxx -sourceItem xxxxx –subclientName xxxxx -
Verify the status of the job using the following command:
qlist job −j jobID
Examples
Restoring from a Current Backup
qoperation execute -af restore_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -destPath 'C:test' -sourceItem 'C:test'
Restoring Files to a Point-in-Time (Date)
qoperation execute -af restore_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -destPath 'C:test' -sourceItem 'C:test' -toTimeValue 2011-11-28
Restoring Files to a Point-in-Time (Date and Time)
qoperation execute -af restore_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -destPath 'C:test' -sourceItem 'C:test' -toTimeValue '2011-11-28 15:40:00'