NetBackup for DB2 environment variables
The NetBackup automatic scheduler creates the environment variables in the following table when it executes a NetBackup for DB2 backup-restore template or script. You can use the DB2_FULL, DB2_INCR, or DB2_CINC variables within a script to specify a backup type.
Only the NetBackup backup and restore templates and scripts use the environment variables in the following table. These variables are unknown to the DB2 backup and restore commands. For example, the backup command and the restore command do not process the DB2_POLICY variable. Instead, the templates and scripts use the POLICY name. This policy is defined in the $DB2_INSTANCE_HOME/db2.conf file (UNIX) or the install_path\NetBackup\dbext\db2\db2.conf file (Windows).
Table: DB2 environment variables describes the DB2 environment variables.
Table: DB2 environment variables
Environment variable | Purpose |
|---|
DB2_POLICY
| Name of the NetBackup for DB2 policy from which the Automatic Backup was started. This policy name is not necessarily the same policy name that is in the db2.conf file. This variable is set only if the backup is initiated from the server, either automatically by the NetBackup scheduler or manually through the administrator interface.
|
DB2_SERVER
| Name of the NetBackup server.
|
DB2_CLIENT | Name of DB2 client. |
DB2_SCHED
| Name of the NetBackup schedule. Enabled only if the backup is initiated from the server, either automatically by the NetBackup scheduler or manually through the administrator interface.
|
DB2_SCHEDULED
| Set to 1 if this backup is a scheduled backup type (Automatic Backup).
|
DB2_USER_INITIATED
| Set to 1 if this backup is a user-initiated backup type (Application Backup backup).
|
DB2_FULL
| Set to 1 for an Automatic full backup .
|
DB2_INCR
| Set to 1 for an Automatic Differential incremental backup .
|
DB2_CINC
| Set to 1 for an Automatic Cumulative incremental backup .
|