Generate the Command Line Script from the CommCell Console
Examples
In order to run the restores from command line, you need an input xml file which contains the attributes for configuring the restore options. This input xml file can be obtained by generating the script from the CommCell Console and saving it on the computer from where the restore will be performed.
Follow the steps given below to generate a script which you can use to perform a restore from the command line interface:
qlogin -cs <commserve name> -u <user name>
qoperation execute -af restore.xml -appName 'Notes Document' -clientName hop -backupsetName XML -destPath '/etc4' -sourceItem '/etc'
qlist job –j JOBID
qlogout [-cs commserver] [-all] [-tf tokenfile] [-tk token] [-h]
Restoring from a Current Backup |
qoperation execute -af restore.xml -appName 'Notes Document' -clientName hop -backupsetName XML -destPath '/etc4' -sourceItem '/etc' |
The following command is available for finding backed up data.
This command performs a wildcard search for a specific file in the backed up content. This command also allows you to search data from multiple indexing cycles. For example, consider a scenario where a user has backed up the following:
Even when the backup cycle is in a time frame beyond the third cycle, you can search the backed up data from all the three cycles without any additional input parameters.
qoperation find -af argsfile [-rf resultfile][-tf tokenfile] [-tk token] [-h]
-af | Reads arguments from an input file |
-rf | Saves results to a file |
-tf | Reads token from a file |
-tk | Token string |
-h | Displays help |
server | CommServe host name |
user | User name (prompted if not specified) |
password | Password (prompted if not specified) |
sourceclient | Name of the client computer on which you want to perform search operation. |
dataagent | Agent type installed on source client computer |
backupset | Backup set name |
sourcepaths | File/Directory to be restored (using wildcard characters) |
options | Restore options |
browsefrom | Start date/time to be considered for search operation. Format: mm/dd/yyyy hh:mm[:ss] or yyyy/mm/dd hh:mm[:ss]. |
browseto | End data/time to be considered for search operation. Format: mm/dd/yyyy hh:mm[:ss] or yyyy/mm/dd hh:mm[:ss] |
Possible exit status values are:
0 - Successful completion.
1 - CLI usage failures, due to the use of an unsupported option or missing argument. 2 - Any other failure.Use the following steps to perform a wild card search operation on backed up content using find command:
1. |
Create an input parameter file with the required arguments and values. For example, see the sample input parameter sample.ini on the right. |
[sourceclient] |
2. | Run the qoperation from the command prompt. |
C:\Calypso\Base>qoperation find -af
" SAMPLEFILE.INI" -rf C:\out_find03.txt |