PolarDB-X 2.0 stores binary logs locally on each instance. Local log backup lets you control how many logs are kept, how long they are retained, and how much local storage they can consume. Configuring these limits prevents logs from filling up instance storage while keeping enough history for replication or local recovery.
Configure local log backup settings
-
Log on to the PolarDB-X console.
-
In the top navigation bar, select the region where the instance is deployed.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance that you want to manage and click its ID.
In the left-side navigation pane, choose .
Click Backup Policy.
On the Local Log Settings tab, configure the following parameters.
Parameter Description Number of On-premises Log
Maximum number of local logs to retain. Default: 60. When the count exceeds this limit, the oldest logs are deleted. Valid values: 6–100. Retention duration
How long log backup files are kept in local storage after log backup is enabled. Default: 7 hours. Files older than the retention period are deleted. Valid values: 0–168. Space usage does not exceed
Maximum percentage of total instance storage that local binary log backups can consume. Default: 30%. Calculated as: local binary log backup size / total instance storage. When the percentage exceeds this limit, the oldest binary log backups are deleted. Valid values: 0–50. Free space protection
Triggers immediate deletion of the oldest binary log backups when used storage exceeds 80% of total storage or available storage drops below 5 GB. Enabled by default. Deletion stops automatically when used storage falls below 80% and available storage exceeds 5 GB. Click OK.