You can use the DB2 LOGTARGET option to extract files from the backup image and restore them to the following directory.
UNIX
DB2_Retrieve_Path/db2_instance_name/db2_database_name/LogsFromBackupImage/
Windows
DB2_Retrieve_Path\db2_instance_name\db2_database_name\LogsFromBackupImage\
The DB2 Retrieve Path that you can specify during installation or that you configure with an additional setting.
For additional information on LOGTARGET, go to the DB2 Knowledge Center, LOGTARGET.
Before You Begin
By default, the Commvault software cleans the log target directory after the restore completes. To leave the log files in the target directory, to the DB2 client, add the additional setting as shown in the following table.
For instructions on how to add additional settings from the CommCell Console, see Add or Modify an Additional Setting.
|
Property |
Value |
|---|---|
|
Name |
|
|
Category |
Db2Agent |
|
Type |
String |
|
Value |
Y |
Procedure
-
From the CommCell Browser, navigate to Client Computers > client > DB2 > instance.
-
Right-click the backup_set, point to All Tasks, and then click Browse and Restore.
The Browse and Restore dialog box is displayed.
-
On the Time Range tab, select Latest Backup, and then click View Content.
-
Select the databases to restore, and then click Recover All Selected.
The Restore Options dialog box is displayed.
-
On the Recover tab, clear the Recover DB check box.
-
On the Restore Arguments tab, in the Backup Images area, select the backup images from the available images, and then click >.
-
Click Advanced.
The Advanced Restore Options dialog box is displayed.
-
On the Log Files tab, select the Restore Logs from Backup Image (use LogTarget) check box.
-
Click OK to close the Advanced Restore Options dialog box.
-
Click OK to close the Restore Options dialog box and start the restore.