PolarDB supports data backup and redo log backup. Backing up data is a process of creating a backup set (snapshot) of all data on a cluster at a certain point in time. Backing up redo logs is a process of recording the new data after a backup set is created. You can configure policies for data backup and redo log backup. For example, you can specify the backup method, the retention periods of data backup files and log backup files, and the storage location.
Procedure
Parameters in the Data Backup section
A data backup policy consists of a level-1 backup policy and a level-2 backup policy.
Backup method | Parameter | Description |
---|---|---|
Level-1 backup | Backup method | The backup method that determines the frequency of automatic data backups. You can
select Standard Backup or High-frequency Backup.
|
Backup Cycle | The days of the week on which automatic data backups are performed.
Note This parameter is required only when Standard Backup is selected.
|
|
Start Time | The time range within which automatic data backups are performed.
Note This parameter is required only when Standard Backup is selected.
|
|
Backup Frequency | The interval at which automatic backups are performed. Valid values: Last 24 Hours, Every 4 Hours, Last 24 Hours, Every 2 Hours, and Last 24 Hours, Every 3 Hours.
Note This parameter is required only when High-frequency Backup is selected.
|
|
Data Backup Retention Period | The retention period of level-1 backups.
Note
|
|
Level-2 backup | Switch for Level-2 Backup | Specifies whether to enable the level-2 backup feature.
Note
|
Backup method | Valid values: Same-region Backup and Cross-region Backup.
Note
|
|
Backup Cycle | The days on which level-2 backups are performed.
Note You can only select the days specified in the Backup Cycle parameter for level-1 backups.
|
|
Same-region Backup and Retention | The retention period of same-region backups.
Note
|
|
Destination Backup Region | The region in which the backup data is to be stored. | |
Cross-region Backup and Retention | The retention period of cross-region backups.
Note
|
Parameters in the Log Backup section
When you configure a redo log backup policy, you must specify the retention period of redo logs.
Parameter | Description |
---|---|
Backup method | Valid values: Same-region Backup and Cross-region Backup.
Note
|
Same-region Backup and Retention | The retention period of same-region log backups.
Note
|
Destination Backup Region | The value of the parameter is the same as the value of the Destination Backup Region parameter for level-2 backup. You do need to specify this parameter. |
Cross-region Backup and Retention | The retention period of cross-region backups.
Note
|
Parameters in the General section
You can configure a backup retention policy that applies when you delete a cluster.
Parameter | Description |
---|---|
When Cluster Is Deleted | The backup retention policy that applies when you delete a cluster.
Note
|
Related API operations
API | Description |
---|---|
DescribeBackupPolicy | Queries the backup policy of a specified PolarDB cluster. |
ModifyBackupPolicy | Modifies the backup policy of a specified PolarDB cluster. |