You can perform a backup operation for OpenStack from the command line using a saved script or an XML template file.
Before You Begin
You can use an XML file to provide input parameter values for commands. Use one of the following methods to provide XML input:
-
Download the backup_template.xml file, modify it to match your backup requirements, and include it in the command line as shown in the sample procedure and examples for this topic.
-
Generate a script and XML parameters file from the CommCell Console, and save it on the computer where the backup is performed.
Procedure
-
To log on to the CommServe computer, run the
qlogin
command. -
On the command line, go to the location where you saved the .XML file, and type the following command:
qoperation execute -af $[backup_template.xml] -appName '$[Virtual Server]' -clientName $[xxxxx] -backupsetName $[xxxxx] -subclientName $[xxxxx] -backupLevel $[FULL]
where:
-
appName
is the name of the application. In this case, it is'Virtual Server'
. -
clientName
is the name of the virtualization client. -
backupsetName
is the name of the backup set. -
subclientName
is the name of the subclient. -
backupLevel
is the type of backup to perform. Valid values are:-
FULL
-
INCREMENTAL
-
-
-
To verify the status of the job, type the following command:
qlist job −j jobID
-
After the job completes, to log off the CommServe computer, run the
qlogout
command.
Example of Performing a Full Backup
qoperation execute -af backup_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel FULL
Example of Performing an Incremental Backup
qoperation execute -af backup_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel INCREMENTAL