Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for DB2 Administrator's Guide
  3. Configuring NetBackup for DB2
  4. Configuring the run-time environment
  5. NetBackup for DB2 environment variables
Veritas NetBackup™ for DB2 Administrator's Guide

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.

Note:

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 .

More Information

Keywords for the db2.conf file

NetBackup for DB2 backup types

Specifying the master server for a NetBackup for DB2 client

Configuring a policy to back up the archive logs

Configuring a policy to archive the archive logs

Feedback

Was this page helpful?
Previous

Keywords for the db2.conf file

Next

Configuring the logon account for the NetBackup Client Service for NetBackup for DB2

Feedback

Was this page helpful?