All Products
Search
Document Center

PolarDB:Local log backup

Last Updated:Mar 28, 2026

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

  1. Log on to the PolarDB-X console.

  2. In the top navigation bar, select the region where the instance is deployed.

  3. On the Instances page, click the PolarDB-X 2.0 tab.

  4. Find the instance that you want to manage and click its ID.

  5. In the left-side navigation pane, choose Data Recovery > Backup and Restoration.

  6. Click Backup Policy.

  7. On the Local Log Settings tab, configure the following parameters.

    ParameterDescription

    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.
  8. Click OK.