DB2 10.5 for Linux, UNIX, and Windows

Restoring from incremental backup images

A restore operation from incremental backup images consists of four steps.

About this task

  1. Identifying the incremental target image.

    Determine the final image to be restored, and request an incremental restore operation from the DB2® restore utility. This image is known as the target image of the incremental restore, because it is the last image to be restored. The incremental target image is specified using the TAKEN AT parameter in the RESTORE DATABASE command.

  2. Restoring the most recent full database or table space image to establish a baseline against which each of the subsequent incremental backup images can be applied.
  3. Restoring each of the required full or table space incremental backup images, in the order in which they were produced, on top of the baseline image restored in Step 2.
  4. Repeating Step 3 until the target image from Step 1 is read a second time. The target image is accessed twice during a complete incremental restore operation. During the first access, only initial data is read from the image; none of the user data is read. The complete image is read and processed only during the second access.

    The target image of the incremental restore operation must be accessed twice to ensure that the database is initially configured with the correct history, database configuration, and table space definitions for the database that is created during the restore operation. In cases where a table space was dropped since the initial full database backup image was taken, the table space data for that image is read from the backup images but ignored during incremental restore processing.

There are two ways to restore incremental backup images: automatic and manual:
  • For an automatic incremental restore, the RESTORE DATABASE command is issued only once specifying the target image to be used. DB2 for Linux, UNIX, and Windows then uses the database history to determine the remaining required backup images and restores them.
  • For a manual incremental restore, the RESTORE DATABASE command must be issued once for each backup image that needs to be restored (as outlined in the steps listed previously).

Procedure