PolarDB allows you to use the backup and restoration features free of charge, but charges fees for the storage space consumed by backup files. This topic describes the billing rules of storage space consumed 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 |
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 physical storage of level-1 backup - Free quota) × Unit price per hour For example, a PolarDB for MySQL cluster deployed in the Chinese mainland uses the PSL5 storage type. If the total size of level-1 backup (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/hour = USD 0.0928/hour.
Note For more information, see FAQ.PSL4 USD 0.0003 per GB-hour
USD 0.000433 per GB-hour
- Billing rules for level-2 backup
Level-2 backup 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 backup × Unit price per hour For example, a PolarDB for MySQL cluster is deployed in the Chinese mainland. If the total size of level-2 backup 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/hour = USD 0.0325/hour.
- 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 backup × Unit price per hour + Network traffic price for cross-region backup For example, you back up data of a PolarDB for MySQL cluster between regions in the Chinese mainland. If the total size of level-2 backup 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.035.
The fee is calculated based on the following formula: 1000 GB × USD 0.0000325 per GB-hour + 500 MB × USD 0.005 per GB-hour = USD 0.035/hour
Network traffic For more information about fees for network traffic consumed by cross-region backup, see Network traffic fees. Note- Cross-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.
- Billing rules for single-region backup
- Billing rules for log backup
Log backup 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 physical storage of log backup - 100 GB) × Unit price per hour For example, 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/hour = USD 0.02925/hour.
- 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 physical storage of log backup - 100 GB) × Unit price per hour + Network traffic price for cross-region backup For example, a PolarDB for MySQL cluster is deployed in the Chinese mainland. If the total size of log backup is 1,000 GB and the network traffic consumed by cross-region backup is 500 MB, the storage fee per hour is USD 0.03175
The fee is calculated based on the following formula: (1,000 GB - 100 GB) × USD 0.0000325/GB/hour + 500 MB × USD 0.005 per GB-hour = USD 0.03175/hour
Network traffic For more information about fees for network traffic consumed by cross-region backup, see Network traffic fees. Note- Cross-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.
- Billing rules for single-region backup
Use storage plans to offset level-1 backup storage fees
Storage type | Region in the Chinese mainland | Region outside the Chinese mainland |
---|---|---|
PSL5 | 1.62 GB | 1.62 GB |
PSL4 | 2.5 GB | 2.5 GB |
For example, assume that you purchase a storage plan of 100 GB for your cluster whose storage type is PSL5 and you have 50 GB of data. The data itself consumes 50 GB of the storage plan, which leaves 50 GB remaining. The level-1 backup of the cluster consume 50 GB of storage space beyond the free quota. In this case, 31.25 GB (50/1.6 = 31.25) of the storage plan is automatically used to offset the excess storage space consumed by the level-1 backup, which leaves a final size of 18.75 GB remaining in your storage plan.
If the remaining 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. For more information about storage plans, see FAQ about billing of storage plans.