Configuring Cross-Region Backup
Scenarios
If both the production site and the cross-AZ DR site become unavailable due to a regional disaster such as an earthquake, you can use CBR for cross-region DR.
Specifically, CBR periodically backs up the servers and disks associated with a vault based on a backup policy, and then replicates the backups to the cross-region DR site based on a replication policy. If both the production site and the cross-AZ DR site fail, you can restore services at the cross-region DR site with only a few clicks.
The procedure of setting up cross-region DR with CBR is as follows:
Constraints and Limitations
- Each user can create a maximum of 32 backup policies and 32 replication policies.
- A maximum of 64 ECSs can be associated with a backup policy.
- Automatic backup jobs require enabling the backup policy. The system automatically backs up ECSs associated with the backup policy and deletes expired backups.
Prerequisites
- Confirm that the following operations have been performed before you back up an ECS:
- The Linux ECS has been optimized (see Optimizing a Linux Private Image), and Cloud-Init has been installed (see Installing Cloud-Init).
- The Windows ECS has been optimized (see Optimizing a Windows Private Image), and Cloudbase-Init has been installed (see Installing Cloudbase-Init).
Creating a Backup Policy
- Log in to the management console.
- Click in the upper left corner and select the region and project of the production site.
- Click Service List and choose Storage > Cloud Backup and Recovery > Policies.
- Click Create Policy in the upper right corner. On the displayed page, click Backup policy to create a custom backup policy. See Figure 1.
- Set the backup policy parameters Table 1 describes the parameters.
More frequent backups create more backups or retain backups for a longer time, protecting data to a greater extent but occupying more storage space. Set an appropriate backup frequency as needed.
- Click OK.
Purchasing a Server Backup Vault and Applying the Backup Policy
- Log in to CBR Console. In the navigation pane on the left, choose Cloud Server Backup.
- In the upper right corner of the page, click Buy Server Backup Vault.
- Set Protection Type to Backup.
A server backup vault stores server backups.
If you need to purchase a replication vault to store the generated backup replicas, set Protection Type to Replication (cross-region).
- Configure application-consistent backup.
- If application-consistent backup is enabled, the vault can be used to store database backups. For example, you can back up ECSs running MySQL or SAP HANA databases, because application-consistent backup ensures that the backed-up data is transactionally consistent. If an application-consistent backup task fails, CBR automatically performs a non-database server backup task instead. This non-database server backup will be stored in the database server backup vault.
- If application-consistent backup is not enabled, only non-database server backup is performed on associated servers, which is usually used for ECSs not running databases.
- Click Configure for Associate Server. In the displayed server list, select the servers or disks that you want to back up.
After the servers or disks are selected, they are added to the list of selected servers. For details, see Figure 2. You can also select specific disks on a server and associate them with the vault.
To avoid data inconsistency after restoration, you are advised to back up the entire server.
If you want to back up only some of the disks to reduce costs, ensure that the data on the backed-up disks does not depend on the disks that are not backed up. Or, data inconsistency may occur.
For example, the data of an Oracle database is scattered across different disks. If only some of the disks are backed up, restoration restores only the data of the disks that have been backed up, with data on the rest of the disks unchanged. As a result, the data may be inconsistent and the Oracle database may fail to start.
- The selected servers must be in the Running or Stopped state.
- Specify the vault capacity.
Its value ranges from the total size of the associated servers to 10,485,760 GB. You need to properly plan the vault capacity, which must be at least the same as the size of the servers you want to back up. Also, if automatic association is enabled and a backup policy is applied to the vault, more capacity is required. As the vault's used space grows, you can expand the vault capacity if it becomes insufficient.
- Click Configure for Auto Backup and select a backup policy from the drop-down list.
The backup policy will be applied to this vault, and all servers associated with this vault will be automatically backed up based on the policy.
- If you have subscribed to the Enterprise Project Management Service (EPS), add the vault to an existing enterprise project.
EPS provides a unified method to manage cloud resources by project, allowing you to manage resources, users, and user groups in your projects. The default enterprise project is default.
If the CBR FullAccess permissions have been assigned to IAM users, enterprise projects will not be displayed for you to choose from when you create a vault. Go to the Enterprise Project Management console and assign the CBR FullAccess permissions to the target user group.
- (Optional) Add tags to the vault.
Tags are key-value pairs, which are used to identify, classify, and search for vaults. Vault tags are used to filter and manage vaults only. A vault can have a maximum of 10 tags.
Table 2 describes the tag parameters.Table 2 Tag parameter description Parameter
Description
Example Value
Key
Each tag has a unique key. You can customize a key or select the key of an existing tag created in TMS.
A tag key:
- Contains 1 to 36 Unicode characters.
- Can contain only letters, digits, hyphens (-), and underscores (_).
Key_0001
Value
A tag value can be repetitive or left blank.
A tag value:
- Contains 0 to 43 Unicode characters.
- Can contain only letters, digits, hyphens (-), and underscores (_).
Value_0001
- Specify a name for the vault.
The name must contain 1 to 64 characters including digits, letters, underscores (_), or hyphens (-), for example, vault-f61e.
You can also use the default name vault_xxxx.
- Pay for the order as prompted.
- Go back to the Cloud Server Backup page. You can view the created vault in the vault list.
You can associate servers with the vault and perform backup for the servers. For details, see Vault Management.
Creating a Replication Policy
- Log in to CBR Console. In the navigation pane on the left, choose Policies.
- Click Create Policy in the upper right corner. On the displayed page, click Replication policy to create a custom replication policy. See Figure 3.
- Set the replication policy and Create Now.
Purchasing a Server Replication Vault and Applying the Replication Policy
- Log in to CBR Console. In the navigation pane on the left, choose Cloud Server Backup.
- Click in the upper left corner and select the region and project of the cross-region DR site.
- Click Buy Server Backup Vault in the upper right corner of the page. For details, see 1 to 12 in Purchasing a Server Backup Vault and Applying the Backup Policy.
- Click in the upper left corner and select the region and project of the production site.
- On the Vaults tab page, locate the row that contains the target vault, click More in the Operation column, and choose Apply Replication Policy.
The Apply Replication Policy dialog box is displayed.
The backup policy has been applied to the server backup vault when you purchase the vault. Now you only need to apply the replication policy.
- In the displayed dialog box, select the created replication policy and select the replication vault at the cross-region DR site as the destination vault.
Figure 4 Applying a replication policy
- Confirm the information and click OK.
- Go to the Policies page and view the policy status.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot