Use XML to back up Sybase databases.
You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.
Before You Begin
- Optional: Limit the number of database data and log backup jobs that can simultaneously run on a client. See Throttling Backup Jobs.
Procedure
-
Download the backup_template.xml file to the computer where you will run the command.
-
Open the backup_template.xml file, add your specific parameters, and save the file.
For information on supported XML parameters, see Available XML Parameters for Sybase Backups and Restores.
-
On the command line, go to Software_Installation_Directory/Base and type the command.
qoperation execute -af backup_template.xml -appName 'Sybase Database' -clientName xxxxx -instanceName xxxxx -subclientName xxxxx -backupLevel FULL
-
Verify the status of the job. On the command line type the command:
qlist job –j <job_id>
-
Once the job completes, run the qlogout command to log off of the CommServe computer.
Examples
Performing a Full Backup
qoperation execute -af backup_template.xml -appName 'Sybase Database' -clientName client1 -instanceName instance1 -subclientName subclient1 -backupLevel FULL
Performing an Incremental Backup
qoperation execute -af backup_template.xml -appName 'Sybase Database' -clientName client1 -instanceName instance1 -subclientName subclient1 -backupLevel INCREMENTAL
Performing a Cumulative Incremental Backup
Before you use the XML template, you must configure the Sybase database to maintain the list of pages that must be dumped.
You can use the sp_dboption system procedure to enable this feature.
Syntax
sp_dboption dbname, 'allow incremental dumps', true
Parameters
The following table describes the parameters.
Parameter |
Description |
---|---|
database_name |
The name of the database that you want to use for the backup. |
option |
The option that you want to set for the database. Use 'allow incremental dumps'. |
true |
Use 'true' to set the feature. |
Example XML
qoperation execute -af backup_template.xml -clientName 'kr-win-sybase' -instanceName 'SYBASE' -subclientName 'boon1-client' -backupLevel DIFFERENTIAL