Overview¶
What Is CBR?¶
Cloud Backup and Recovery (CBR) enables you to back up cloud servers and disks with ease. In case of a virus attack, accidental deletion, or software or hardware fault, you can restore data to any point in the past when the data was backed up.
CBR protects your services by ensuring the security and consistency of your data.
What Are the Differences Between Backup, Snapshot, and Image?¶
You can use the cloud server backup function to create ECSs and the cloud disk backup function to create EVS disks.
An image can be a system disk image, data disk image, or full-ECS image.
Backup Type | Backup Object | Application Scenario | Differences and Advantages |
---|---|---|---|
Cloud server backup | All disks (system and data disks) on an ECS |
| All disks on an ECS are backed up at the same time, ensuring data consistency. In addition, you can configure backup policies for automatic backup. |
Cloud disk backup | One or more specified disks (system or data disks) |
| Backup data is stored in OBS, instead of disks. This ensures data restoration upon disk data loss or corruption. Backup cost is reduced without compromising data security. |
Snapshot | One or more specified disks (system or data disks) |
Note
|
|
System disk image | System disk |
| A system disk image can help an ECS with OS damaged to quickly change its OS. |
Data disk image | Specific data disk | Rapid data replication You can use a data disk image to create multiple EVS disks containing the same initial data, and then attach these disks to ECSs to provide data resources for multiple services. | A data disk image can replicate all data on a disk and create new EVS disks. The EVS disks can be attached to other ECSs for data replication and sharing. |
Full-ECS image | All disks (system and data disks) on an ECS |
| A full-ECS image facilitates service migration. |
CBR Architecture¶
CBR consists of backups, vaults, and policies.
Backup
A backup is a copy of a particular chunk of data and is usually stored elsewhere so that it may be used to restore the original data in the event of data loss. CBR supports the following backup types:
Cloud server backup: This type of backup uses the consistency snapshot technology for disks to protect data of ECSs and BMSs. The backups of servers without deployed databases are common server backups, and those of servers with deployed databases are application-consistent backups.
Cloud disk backup: This type of backup provides snapshot-based data protection for EVS disks.
Vault
CBR uses vaults to store backups. Before creating a backup, you need to create at least one vault and associate the resource you want to back up with the vault. Then the backup of the resource is stored in the associated vault.
Vaults can be classified into two types: backup vaults and replication vaults. Backup vaults store backups, whereas replication vaults store replicas of backups.
The backups of different types of resources must be stored in different types of vaults.
Policy
Policies are divided into backup policies and replication policies.
Backup policies: To perform automatic backups, configure a backup policy by setting the execution times of backup tasks, the backup cycle, and retention rules, and then apply the policy to a vault.
Replication policies: To automatically replicate backups or vaults, configure a replication policy by setting the execution times of replication tasks, the replication cycle, and retention rules, and then apply the policy to a vault. Replicas of backups must be stored in replication vaults.
Backup Mechanism¶
A full backup is performed only for the first backup and backs up all used data blocks.
For example, if the size of a disk is 100 GB and the used space is 40 GB, the 40 GB of data is backed up.
An incremental backup backs up only the data changed since the last backup, which is storage- and time-efficient.
When a backup is deleted, only the data blocks that are not depended on by other backups are deleted, so that other backups can still be used for restoration. Both a full backup and an incremental backup can restore data to the state at a given backup point in time.
When creating a backup of a disk, CBR also creates a snapshot for it. Every time a new disk backup is created, CBR deletes the old snapshot and keeps only the latest snapshot.
CBR stores backup data in OBS, enhancing backup data security.
Backup Options¶
CBR supports one-off backup and periodic backup. A one-off backup task is manually created by users and is executed only once. Periodic backup tasks are automatically executed based on a user-defined backup policy.
Item | One-Off Backup | Periodic Backup |
---|---|---|
Backup policy | Not required | Required |
Number of backup tasks | One manual backup task | Periodic tasks driven by a backup policy |
Backup name | User-defined backup name, which is manualbk_xxxx by default | System-assigned backup name, which is autobk_xxxx by default |
Backup mode | Full backup for the first time and incremental backup subsequently, by default | Full backup for the first time and incremental backup subsequently, by default |
Application scenario | Executed before patching or upgrading the OS or upgrading an application on a resource. A one-off backup can be used to restore the resource to the original state if the patching or upgrading fails. | Executed for routine maintenance of a resource. The latest backup can be used for restoration if an unexpected failure or data loss occurs. |