Loading...

Command Line Interface - Backup - Informix iDataAgent

Table of Contents

Generate the Command Line Script from the CommCell Console

In addition to the parameter values provided in the template xml file, if you want to include additional options for the backup, you can do so by selecting the required options from the CommCell Console and generate the command line xml script for the restore operation.

For more information on how to generate the script, see Save as Script Overview.

Perform the Backup

  1. From Command prompt, navigate to <Software_Installation_Directory>/Base and run the following command:

    qlogin -cs <commserve name> -u <user name>

  2. Navigate to the location where the .xml file is saved and execute the saved .xml script using the qoperation execute command.

    qoperation execute -af backup.xml -appName 'Informix' -clientName xxxxx -instanceName instanceName -backupsetName default -subclientName xxxxx -backupLevel FULL

  1. Verify the status of the job using the following command:

    qlist job −j jobID

  2. Once the job completes, log off from the CommServe using the qlogout command.

    qlogout [−cs <commserve_host_name>] [−all] [−tf <tokenfile>] [−tk <token>] [−h]

Examples

Examples

Performing a Full Backup

UNIX

qoperation execute -af /opt/backup.xml -appName 'Informix' -clientName client1 -instanceName ol_informix1210 -backupsetName default -subclientName subclient1 -backupLevel FULL

Windows

qoperation execute af D:\backup.xml appName'Informix' clientName Client2 -instanceName ol_informix121 -backupsetName default subclientName default backupLevel FULL

Performing an Incremental Backup

UNIX

qoperation execute -af /opt/backup.xml -appName 'Informix' -clientName client1 -instanceName ol_informix1210 -backupsetName default -subclientName subclient1 -backupLevel INCREMENTAL

Windows

qoperation execute af D:\backup.xml appName'Informix' clientName Client2 -instanceName ol_informix121 -backupsetName default subclientName default backupLevel INCREMENTAL