Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
5.0 KiB
Backup Space and Billing
Category
- Full backup: All data is backed up even if no data is updated since the last backup.
- Incremental backup: The system automatically backs up data that has changed since the last automated backup or incremental backup in binlogs every 5 minutes. The binlogs can be used to restore data to a specified point in time.
- Differential backup: The system backs up data that has changed since the most recent full backup or differential backup in to physical files. Physical files cannot be used for log replay.
- Billed space: backup space that you are billed for.
- Logical space: space occupied by full backups.
- Physical space: the amount of data backed up to OBS.
Backup Space Calculation Methods
There is a default backup chain (where there are seven backups). The first automated backup is a full backup, and subsequent automated backups are differential backups.
In a backup chain, the backup space is released only after all full backups and differential backups are deleted.
The billed space is calculated as follows:
- Logical space: Total size of the logical space – Logical size of the expired backup file
- Physical space: Size of the first full backup file + Total size of subsequent differential backup files
- Free space: There is free backup storage up to 100% of storage space.
Billed space = Min (Logical space, Physical space) – Free space = Min (Logical space, Physical space) – Storage space
Example
A backup chain contains seven backups by default. There are 11 backups shown in the following figure. The 1st backup to the 7th belong to one backup chain and the 8th to the 11th belong to the other backup chain.
If there is 1,000 MB of backup space and the logical space is 1,000 MB each time, the physical space for the 1st backup is 1,000 MB. If the incremental data size is 100 MB each time, the physical space for the 2nd backup to 7th is 100 MB.
A backup chain contains seven backups by default. The physical space for the 8th backup is 1,000 MB because it represents a new backup chain.
Billed space includes the space of the two chains in the example.
Suppose that after the 11th backup was created, and the 1st, 2nd and 3rd backups expired and were automatically deleted. The size of each space is calculated as follows:
- Total size of the logical space for the 11th backup = 1,000 MB x 11 – 3,000 MB = 8,000 MB
- Physical space: the amount of data backed up to OBS, that is, the sum of the physical space on the two chains.
Physical space = 1,000 MB + 100 MB x 6 + 1,000 MB + 100 MB x 3 = 2,900 MB
- Total billed space = Min (8,000 MB, 2,900 MB) – 1,000 MB = 1,900 MB