Use the DEFINE DBBACKUPTRIGGER command to define settings for the database backup trigger. The database backup trigger determines when ADSM automatically runs a full or incremental backup of the ADSM database and deletes any unnecessary recovery log records.
ADSM uses the settings you specify with this command only when the log mode is set to ROLLFORWARD using the SET LOGMODE command.
With the DEFINE DBBACKUPTRIGGER command, you specify the percentage of the assigned capacity of the recovery log that can be used before ADSM begins a backup of the database. When space usage reaches the percentage you specify, ADSM starts a background process that does the following:
Unless a full backup is required, ADSM runs an incremental backup. A full backup is required when any of the following conditions are true:
ADSM can continue to write new records to the recovery log while creating a backup of the database.
Note: | If a backup initiated by the database backup trigger fails, ADSM waits 60 seconds, and then tries again. It continues to retry the backup until it is successful. If the mount limit for the device class being used for the backup has been reached (all drives busy), ADSM automatically cancels lower priority operations (such as reclamation) to make a mount point available for the database backup. To ensure that a mount point is always available to run a database backup, you can define a device class that is used only by database backup. |
To display settings for the database backup trigger, use the QUERY DBBACKUPTRIGGER command. To update the settings for the database backup trigger, use the UPDATE DBBACKUPTRIGGER command. To delete the database backup trigger, use the DELETE DBBACKUPTRIGGER command.
Privilege Class
To issue this command, you must have system privilege or unrestricted storage privilege.
Syntax
>>-DEFine DBBackuptrigger---DEVclass--=--devclassname-----------> .-LOGFullpct--=--50-----------. >---+-----------------------------+-----------------------------> '-LOGFullpct--=--percentage---' >----+--------------------------------+-------------------------> '-INCRDEVclass--=--devclassname--' .-NUMINCremental--=--6--------. >---+-----------------------------+---------------------------->< '-NUMINCremental--=--number---'
Parameters
If the mount limit for the device class specified has already been reached (all drives are busy) when the backup runs, ADSM automatically cancels lower priority operations, such as reclamation, to make a mount point available for the backup.
Be sure that you have used the DEVCONFIG option in the dsmserv.opt file to specify an external file in which to store a backup copy of device class definitions. If this file is not available and your ADSM database is damaged or lost and must be restored, the definitions created using the DEFINE DEVCLASS command will not be available and must be recreated manually.
You should also use the VOLUMEHISTORY option in the dsmserv.opt file, to specify an external file in which to store a backup copy of sequential volume history information.The volume history file is also used for database recovery.
If the mount limit for the device class has been reached (all drives are busy) when the backup runs, ADSM cancels lower priority operations, such as reclamation, to make a mount point available for the backup.
Be sure that you have used the DEVCONFIG option in the dsmserv.opt file to specify an external file in which to store a backup copy of device class definitions. Without the file, if the database is damaged or lost and must be restored, the device class definitions are unavailable and must be recreated manually.
Each incremental backup, whether run automatically by ADSM or run by issuing the BACKUP DB command, is added to the count of incremental backups run.
Each full backup, whether run automatically by ADSM or run by issuing the BACKUP DB command, resets the count for incremental backups to zero.
Note: | If you issue a BACKUP DB command with the TYPE=INCREMENTAL parameter, ADSM performs an incremental backup of the database regardless of the NUMINCREMENTAL setting. For example, you set NUMINCREMENTAL to 5, and there have been five incremental backups since the last full backup. If you then issue BACKUP DB TYPE=INCREMENTAL, an incremental backup is still taken, and the counter for the number of incremental backups since the last full backup is set to 6. This occurs if the BACKUP DB command is issued either by an administrator or through an administrative schedule. |
Examples
Task
Define the setting of the database backup trigger at 80 percent. Run two incremental backups to every full backup of the database. Assume a device class of FILE for the backup.
Related Commands
Table 37. Commands Related to DEFINE DBBACKUPTRIGGER
Command | Description |
---|---|
BACKUP DB | Backs up the ADSM database to sequential access volumes. |
DEFINE DEVCLASS | Defines a device class that can be used for storage pools, importing, or exporting. |
DELETE DBBACKUPTRIGGER | Deletes the database backup trigger. |
QUERY DBBACKUPTRIGGER | Displays information about the database backup trigger. |
SET LOGMODE | Sets the mode for saving records in the recovery log. |
UPDATE DBBACKUPTRIGGER | Changes one or more attributes of the database backup trigger. |