Help Center/ Database Security Service/ FAQs/ Log and Backup/ How Do I Back Up the Database Audit Logs?
Updated on 2026-08-04 GMT+08:00

How Do I Back Up the Database Audit Logs?

Database audit supports manual backup and automatic backup. Audit logs are backed up to OBS. Buckets will be automatically created and will incur a separate bill.

Perform the following operations to automatically back up audit logs.

Managing Backup and Restoration

  1. Log in to the DBSS console.
  2. Click in the upper left corner on the displayed page and select a region.
  3. In the navigation tree on the left, choose Settings.
  4. In the Instance drop-down list, select an instance to configure alarm notifications.
  5. Click the Backup and Restoration tab page.

Automatically Backing Up Database Audit Logs

  1. Click Modify Automated Backup Settings in the upper right corner. In the displayed dialog box, configure auto backup parameters. For details, see Table 1.

    Figure 1 Configure Automatic Backup dialog box
    Table 1 Parameters

    Parameter

    Description

    Example Value

    Automatic Backup

    Status of automatic backup

    • : enabled
    • : disabled

    Backup Period

    Automatic backup period. Its options are as follows:

    • Daily
    • Hourly

    Daily

    Started

    Start time of the backup. Click to configure.

    2020/01/14 20:27:08

    Bucket Name

    Name of the OBS bucket used for backup. Its options are as follows:

    • Create Default Bucket
    • Select Bucket
    NOTE:
    • If you click Create Default Bucket, you will be prompted to authorize OBS for exporting audit log backups.
    • Audit logs can be exported only to the bucket created by DBSS.

    20f18-7a5a-4042

    Export Directory

    Directory for storing backup files in the OBS bucket.

    test

    Authorize Automated Backup

    Authorize automatic backup before setting an automatic backup task. If you select this option, DBSS can read and write the OBS bucket for audit log backup and export.

    CAUTION:

    Automated backup takes effect about 15 minutes after authorization is completed.

    Selected

  2. Click OK.

    After the automatic backup function is configured, new data in the database will be backed up one hour later. Then you can view the backup information.