In order to run the backups from command line, you need an input xml file which contains the parameter values for configuring 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 by using the Save as Script option, and save it on the computer from where the backup will be performed.
Procedure
-
Download the backup_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 and type the following command:
qoperation execute -af backup_template.xml -appName NDMP -clientName xxxxx -subclientName xxxxx -policyType DATA_PROTECTION -backupLevel FULL -
Verify the status of the job using the following command:
qlist job –j JOBID -
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 NDMP -clientName client1 -subclientName subclient1 -policyType DATA_PROTECTION -backupLevel FULL |
|
Performing an Incremental Backup |
qoperation execute -af backup_template.xml -appName NDMP -clientName client1 -subclientName subclient1 -policyType DATA_PROTECTION -backupLevel INCREMENTAL |