PolarDB allows you to use the backup and restoration features free of charge, but you are charged for the storage space occupied by backup files. This topic describes the billing rules for the storage space occupied by PolarDB backup files.
Free quota
PolarDB offers a free storage quota for backup files. After this quota is exhausted, for single-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs). For cross-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs) and the network traffic consumed by cross-region backup.
Backup type | Free quota | |
Data backup | Level-1 backup | Database storage usage × 50% For information about how to view the database storage usage, see View the database storage usage. |
Level-2 backup | N/A | |
Log backup | 100 GB |
You can enable the storage compression feature for PolarDB Enterprise Edition clusters. For more information, see Enable the storage compression feature. The following rules related to the free quota of level-1 backups apply after you enable the storage compression feature. For more information about the free quota of level-1 backups for a cluster, see the "Free quota" section of this topic.
If the storage of the cluster is billed based on the pay-as-you-go billing method, the free quota of level-1 backups after you enable the storage compression feature is calculated by using the following formula: Storage usage of the database before compression × 50%.
If the storage of the cluster is billed based on the subscription billing method, the free quota of level-1 backups after you enable the storage compression feature is calculated by using the following formula: Max (subscription-billed storage capacity, storage usage of the database before compression) × 50%.
Example:
The storage of a cluster is billed based on the subscription billing method, the subscription-billed storage capacity of the cluster is 2 TB, and the storage usage of the cluster is 1.6 TB. After you enable the storage compression feature, the storage usage of the cluster is compressed to 0.5 TB.
Pay-as-you-go
Billing rules for level-1 backup
After the free quota is exhausted, you are charged for the excess storage space consumed by backup files and the length of time for which the files are retained.
Storage type | Region in the Chinese mainland | Region outside the Chinese mainland | Billing method |
PSL5 | USD 0.000464 per GB-hour | USD 0.000650 per GB-hour | Storage fee per hour = (Total size of level-1 backups - Free quota) × Unit price per hour For example, a PolarDB cluster deployed in the Chinese mainland uses the PSL5 storage type. If the total size of level-1 backups (snapshots) is 700 GB and the database storage usage is 1,000 GB, the storage fee per hour is USD 0.0928. The fee is calculated based on the following formula: [700 GB - (1,000 GB × 50%)] × USD 0.000464/GB = USD 0.0928. Note For information about how to view the total size of level-1 backups, see FAQ. |
PSL4 | USD 0.0003 per GB-hour | USD 0.000433 per GB-hour |
Billing rules for level-2 backup
Level-2 backups can be stored in the same region as the PolarDB cluster or in a different region. For single-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs). For cross-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs) and the network traffic consumed by cross-region backup.
Billing rules for single-region backup
Region in the Chinese mainland
Region outside the Chinese mainland
Billing method
USD 0.0000325 per GB-hour
USD 0.0000455 per GB-hour
Storage fee per hour = Total size of level-2 backups × Unit price per hour
For example, a PolarDB cluster is deployed in the Chinese mainland. If the total size of level-2 backups is 1,000 GB, the storage fee per hour is USD 0.0325.
The fee is calculated based on the following formula: 1,000 GB × USD 0.0000325/GB = USD 0.0325.
Billing rules for cross-region backup
Billable item
Region in the Chinese mainland
Region outside the Chinese mainland
Billing method
Backup storage
USD 0.0000325 per GB-hour
USD 0.0000455 per GB-hour
Storage fee per hour = Total size of level-2 backups × Unit price per hour + Network traffic price for cross-region backup
For example, a PolarDB cluster is deployed in the Chinese mainland. If the total size of level-2 backups is 1,000 GB and the network traffic consumed by the cross-region backup is 500 MB, the storage fee per hour is USD 0.0691.
The fee is calculated based on the following formula: 1,000 GB × USD 0.0000325/GB + 500 MB/1024 × USD 0.075/GB = USD 0.0691.
Network traffic
For more information about fees for network traffic consumed by cross-region backup, see Network traffic fees.
NoteCross-region backup is billed on a daily basis. In this topic, it is converted to the hourly price.
Fees for cross-region backup are recorded in DBS bills.
Billing rules for log backup
Log backups can be stored in the same region as the PolarDB cluster or in a different region. For single-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs). For cross-region backup on PolarDB, you are charged based on the storage capacity and retention period of backup files (data and logs) and the network traffic consumed by cross-region backup.
Billing rules for single-region backup
Region in the Chinese mainland
Region outside the Chinese mainland
Billing method
USD 0.0000325 per GB-hour
USD 0.0000455 per GB-hour
Storage fee per hour = (Total size of log backups - 100 GB) × Unit price per hour
For example, a PolarDB cluster is deployed in the Chinese mainland. If the total size of log backups is 1,000 GB, the storage fee per hour is USD 0.02925.
The fee is calculated based on the following formula: (1,000 GB - 100 GB) × USD 0.0000325/GB = USD 0.02925.
Billing rules for cross-region backup
Billable item
Region in the Chinese mainland
Region outside the Chinese mainland
Billing method
Backup storage
USD 0.0000325 per GB-hour
USD 0.0000455 per GB-hour
Storage fee per hour = Total size of log backups × Unit price per hour + Network traffic price for cross-region backup.
For example, a PolarDB cluster is deployed in the Chinese mainland. If the total size of log backups is 1,000 GB and the network traffic consumed by the cross-region backup is 500 MB, the storage fee per hour is USD 0.0659.
The fee is calculated based on the following formula: (1,000 GB - 100 GB) × USD 0.0000325/GB + 500 MB/1024 × USD 0.075/GB = USD 0.0659
Network traffic
For more information about fees for network traffic consumed by cross-region backup, see Network traffic fees.
NoteCross-region backup is billed on a daily basis. In this document, it is converted to the hourly price.
Fees for cross-region backup are recorded in DBS bills.
Use storage plans to offset level-1 backup storage fees
A storage plan can be used to offset the storage space exceeding the free quota for level-1 backups. If the capacity of the storage plan is insufficient to offset the level-1 backup storage space, you are charged for additional storage space on a pay-as-you-go basis.
The following table lists the ratios.
Region type | Offset ratio | Level-1 backup storage capacity offset by a 1-GB storage plan |
Region in the Chinese mainland (PSL4) | 0.41 | 1/0.41=2.44 GB |
Region in the Chinese mainland (PSL5) | 0.617 | 1/0.617=1.62 GB |
Region outside the Chinese mainland (PSL4) | 0.41 | 1/0.41=2.44 GB |
Region outside the Chinese mainland (PSL5) | 0.617 | 1/0.617=1.62 GB |
For example, you purchase a storage plan with a capacity of 100 GB and 50 GB is left after you offset the storage space (PSL5). Your cluster uses 50 GB of storage for level-1 backups (outside the free quota) in a Chinese mainland region. In this case, the storage plan automatically uses 31.25 GB (50/1.6=31.25) to offset the backup storage. As a result, the storage plan has 18.75 GB of capacity left.
If the remaining capacity of the storage plan is insufficient to offset the level-1 backups, you are charged for the excess storage usage on a pay-as-you-go basis.
For more information about storage plans, see FAQ about billing for storage plans.
Use storage plans to offset level-2 backup storage fees
A storage plan can be used to offset the storage space for level-2 backups. If the capacity of the storage plan is insufficient to offset the level-2 backup storage space, you are charged for additional storage space on a pay-as-you-go basis.
The following table lists the ratios.
Region type | Offset ratio | Level-2 backup storage capacity offset by a 1-GB storage plan |
Region in the Chinese mainland | 0.043 | 1/0.043=23.26 GB |
Region outside the Chinese mainland | 0.054 | 1/0.054=18.52 GB |
For example, you purchase a storage plan with a capacity of 100 GB, and 50 GB is left after it offsets the data storage usage. Your cluster uses 50 GB of storage for level-2 backups in a Chinese mainland region. In this case, the storage plan automatically uses 2.15 GB (50/23.26) to offset the backup storage usage and the storage plan has 47.85 GB of capacity left.
If the remaining capacity of the storage plan is insufficient to offset the level-2 backups, you are charged for the excess storage usage on a pay-as-you-go basis.
For more information about storage plans, see FAQ about billing for storage plans.
Use storage plans to offset log backup storage fees
A storage plan can be used to offset the storage space for log backups. If the capacity of the storage plan is insufficient to offset the log backup storage space, you are charged for additional storage space on a pay-as-you-go basis.
The following table lists the ratios.
Region type | Offset ratio | Log backup storage capacity offset by a 1-GB storage plan |
Region in the Chinese mainland | 0.043 | 1/0.043=23.26 GB |
Region outside the Chinese mainland | 0.054 | 1/0.054=18.52 GB |
For example, you purchase a storage plan with a capacity of 100 GB, and 50 GB is left after it offsets the data storage usage. Your cluster uses 50 GB of storage for log backups in a Chinese mainland region. In this case, the storage plan automatically uses 2.15 GB (50/23.26) to offset the backup storage usage and the storage plan has 47.85 GB of capacity left.
If the remaining capacity of the storage plan is insufficient to offset the log backups, you are charged for the excess storage usage on a pay-as-you-go basis.
For more information about storage plans, see FAQ about billing for storage plans.