Taking an online snapshot of your IBM® Db2 Warehouse database

An online snapshot is also known as a hot snapshot.

Before you begin

Ensure that snapshot software is properly set up.

About this task

To perform this task, you require root authority.

Procedure

  1. Suspend operations on the database by running the write-suspend script from the Docker or Podman host against the Db2® Warehouse container:
    docker exec -it Db2wh write-suspend
    podman exec -it Db2wh write-suspend
  2. Use the snapshot technology of your choice to take your snapshot backup.
  3. Resume operations on the database by running the write-resume script from the Docker or Podman host against the Db2 Warehouse container:
    docker exec -it Db2wh write-resume
    podman exec -it Db2wh write-resume