Show TOC

Activating or Deactivating Automatic Log BackupLocate this document in the navigation structure

Use

If you have activated automatic log backup, the database system backs up the redo log entries automatically.

Backups of redo log entries (log backups) are required so that the database can be restored to the desired point in time after certain system breakdowns. Redo log entries are where the database system logs all changes that database users have made to data.

Regular log backups are also important for another reason: The database system can overwrite a log segment of the log area with a new entry only after it has been backed up.

Note

You can also back up the redo log entries manually (see Backing Up Log Entries).

Prerequisites
Procedure
  1. Select the database in the explorer tree.

  2. In the context menu of the database, choose Administration.

  3. Open the Overview tab page.

  4. Choose Automatic Log Backup.

Activating Automatic Log Backup

  1. Select Activate Automatic Log Backup.

  2. Select the backup template.

  3. Select when you want the system to run log backups.

    • Create log backup when log segment is full (Default)

    • Create a log backup every <number> seconds

  4. Choose Activate.

Note

For log backups to data carriers of the file type, you have to archive the backup files regularly. To do this, use the database tool Database Manager CLI (see Database Manager CLI, archive_stage).

Deactivating Automatic Log Backup

  1. Select Deactivate automatic log backup.

  2. Choose Deactivate.

Switching to a Different Backup Template

  1. Select Restart automatic log backup

  2. Select the backup template.

  3. Choose Restart.

Example

You have activated automatic log backup and specified the following backup template:

Table 1: Example of a Backup Template for a Log Backup

Property

Value

Name of the backup template

DEMODB_LOG

Backup type

LOG

Data carrier type

FILE

Data carrier (Device/File)

DEMODB_MYLOG

Note that i you do not enter an absolute path, then the database system uses the run directory of the database, see Run directory.

Example: C:\ProgramData\sdb\globaldata\wrk\DEMODB\DEMODB_LOG

Size of data carrier

No restriction (blank or 0)

Block size

8 pages

Overwritable

No

The system writes continuous log backups to the following backup files:

DEMODB_MYLOG.001

DEMODB_MYLOG.002

DEMODB_MYLOG.003

DEMODB_MYLOG.004

DEMODB_MYLOG.005

More Information

Database Administration, Backing Up Log Entries