Using DB2 to run a user-directed backup
To start a user-directed backup, run the DB2 BACKUP DATABASE command.
You can run this command from the DB2 command line on the client (UNIX) or from the DB2 command window on the client.
Depending on the release of DB2 that you use, issue the BACKUP DATABASE command in one of the following formats to perform a backup.
Table: BACKUP DATABASE command formats
Format | Description |
|---|---|
Offline backup | Issue the command in the following format: Windows: db2 backup db sample load install_path\NetBackup\bin\nbdb2.dll UNIX: db2 backup db sample load \ /usr/openv/netbackup/bin/lib The specification for lib differs depending on your platform. |
Online backup | Issue the command in the following format: Windows: db2 backup db sample online load install_path\NetBackup\bin\nbdb2.dll UNIX: db2 backup db sample online load /usr/openv/netbackup/bin/lib For lib, specify the same path as shown for the preceding format (Format 1). For more information on the DB2 BACKUP DATABASE command, see your DB2 documentation. |