Procedure documentationLog Backup to a Pipe Locate this document in the navigation structure

 

You back up the data in the log area of the database system to a pipe.

You cannot back up the data in the log area to a pipe with automatic log backup.

You can display the status of the backup operation with the DBM command backup_state. When you execute this command, the system displays the progress of the backup.

Scenario

You want to back up the log area to a pipe. You have already executed a data backup and defined a backup template of type PIPE with the name DemoPipeLog for the log backup.

For testing purposes, DEMODB was configured so that the log area is overwritten as soon as it is full. To back up the log area, you first have to switch off overwrite mode.

The database instance is in the ONLINE or the ADMIN operational state.

Prerequisites

You can find the prerequisites under Database Manager CLI, backup_start, backup_state.

Procedure

  1. Call the Database Manager CLI in session mode, log on as operator OLEG with password MONDAY, and connect to database instance DEMODB:

    >dbmcli –u OLEG,MONDAY –d DEMODB

    dbmcli on DEMODB>

  2. Switch off overwrite mode for the log area:

    dbmcli on DEMODB>db_execute SET LOG AUTO OVERWRITE OFF

  3. Open a database session:

    dbmcli on DEMODB>db_connect

    OK

  4. Start the backup operation using backup template DemoPipeLog.

    dbmcli on DEMODB>backup_start DemoPipeLog

Result

The data is read from the Database Manager to the pipe. You now need to start the backup tool in order to transfer the data from the pipe to the data carrier of the backup tool.

After you have executed the DBM command, information about the backup is output. This information is only output if the backup was completed or interrupted. The response to this DBM command can therefore take a long time.