Backing up a Db2 database online
For a Db2 deployment, the method for the database backup is to use a Single System View
(SSV) backup. This strategy helps you back up all database partitions simultaneously, including the
catalog partition. SSV backups provide a single time-stamp for all database partitions, making the
recovery simpler. The db2 backup command must be run from the node where the Db2
database service is deployed.
Before you begin
- For an online backup, the database is online and accessible to applications during backup. Changes that are made to the database during the backup process are included in the backup.
- You must identify the Db2 catalog node and have an SSH connection to the catalog node. For more information, see Preparing to back up or restore Db2.
Note:
The commands in this procedure use the environment variable containing the default database name
${DBNAME}. If you have multiple databases, please update the variable value or
commands accordingly.
Procedure
What to do next
For instructions on the recommended restore option, see Using the restore script.