Backing up and restoring Db2

Important: IBM Cloud Pak for Data Version 4.6 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.

Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.6 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.

You can use the db2 backup and db2 restore commands to back up and restore your integrated Db2 instance.

Important notes:

  • IBM® recommends that you run full backups of your entire database on a regular basis. For more information, see Deciding how often to back up.
  • Do not stop the container while a backup or a restore operation is in progress.
  • Use the db2 backup and db2 restore commands to run full online backup and restore operations on a Db2 database.
  • To restore the database in a different deployment or cluster, ensure that you export the encryption keystore with your backup images.
Note: You can also back up and restore persistent volumes in the Red Hat® OpenShift® project (namespace) where the Db2 service is installed. For information, see Backing up and restoring your deployment.

For more information about Db2 backup and restore operations, see: