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 or manually back up audit logs.
A manual backup will back up all your database audit logs. If the number of logs is too large, you are advised to use automatic backup. Daily automatic backup is recommended.
Automatically Backing Up Database Audit Logs
- Log in to the management console.
- Select a region, click
, and choose . The Dashboard page is displayed. - In the navigation tree on the left, choose Settings.
- In the Instance drop-down list, select the required instance and click the Backup and Restoration tab.
- Click Configure. In the displayed dialog box, set the parameters, as shown in Figure 1. Table 1 describes the parameters.
Table 1 Parameters Parameter
Description
Example Value
Automatic Backup
Status of automatic backup
: enabled
: disabled

Backup Period
Automatic backup period. The options are as follows:
- Daily
- Weekly
- Monthly
Daily
Started
Start time of the backup. Click
to configure.2020/01/14 20:27:08
Estimated Next Time for Backup
Time when the next automatic backup starts
2020/01/15 20:21:29
Access Key ID(AK)
Access key (AK)
-
Secret Access Key(SK)
Secret access key (SK)
-
- Click OK.
Manually Backing Up Database Audit Logs
- Log in to the management console.
- Select a region, click
, and choose . The Dashboard page is displayed. - In the navigation tree on the left, choose Settings.
- In the Instance drop-down list, select the required instance and click the Backup and Restoration tab.
- Click Manually Back Up. In the displayed dialog box, set Backup Scope, AK, and SK, as shown in Figure 2.
- Click OK.


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.