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
qlogincommand. -
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:
-
appNameis the name of the application. In this case, it is'Virtual Server'. -
clientNameis the name of the virtualization client. -
backupsetNameis the name of the backup set. -
subclientNameis the name of the subclient. -
backupLevelis 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
qlogoutcommand.
Example of Performing a Full Backup
qoperation execute -af backup_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel FULLExample of Performing an Incremental Backup
qoperation execute -af backup_template.xml -appName 'Virtual Server' -clientName client1 -backupsetName backupset1 -subclientName subclient1 -backupLevel INCREMENTAL