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. About NetBackup for DB2 templates and shell scripts
  5. Creating DB2 scripts manually
Veritas NetBackup™ for DB2 Administrator's Guide

Creating DB2 scripts manually

On Windows, the NetBackup for DB2 installation software includes the following scripts:

  • db2_backup_db_offline.cmd

  • db2_backup_db_online.cmd

  • db2_restore_db.cmd

  • db2_mpp_backup_offline.cmd

  • db2_mpp_restore_db.cmd

On UNIX, the NetBackup for DB2 installation software includes the following scripts:

  • db2_backup

  • db2_restore

  • db2_all_backup_mpp

  • db2_all_restore_mpp

After installation, the scripts reside in the following location:

On Windows: install_path\NetBackup\dbext\db2\samples\

On UNIX: /usr/openv/netbackup/ext/db_ext/db2/scripts

Modify these scripts for your environment. Do not store your scripts in the sample directory because they are lost if you upgrade or reinstall. Always relocate your scripts to a safe location. For clustered environments, this location must be available after a failover.

Although each script can have multiple DB2 commands operations, a separate script is required for each type of operation. For example, you need separate scripts for backups and restore.

Note:

Always specify the correct script when configuring automatic backups or when starting operations through NetBackup. NetBackup for DB2 does not generate an error if a restore script is used for a backup operation or a backup script is used for a restore operation.

More Information

Modifying DB2 backup and install scripts

Script parameters

About NetBackup for DB2 templates and shell scripts

About backup schedules, templates, and scripts

Feedback

Was this page helpful?
Previous

Creating shell scripts using bpdbsbdb2

Next

Modifying DB2 backup and install scripts

Feedback

Was this page helpful?