You can use Hybrid Backup Recovery (HBR) to back up MySQL databases deployed on Elastic Compute Service (ECS) instances and restore these databases as needed. This topic describes the preparations that you must make before a data backup.
Step 1: Create and assign RAM roles to HBR
Before you use HBR to back up MySQL databases deployed on ECS instances, you must authorize the AliyunHBRDefaultRole and AliyunECSAccessingHBRRole roles to access your cloud resources. To create and assign the roles, perform the following steps:
- Log on to the HBR console.
- In the left-side navigation pane, choose MySQL. On the page that appears, assign the roles as prompted. . Click
Step 2: Install and configure Cloud Assistant
An HBR backup client for ECS must be used in combination with Cloud Assistant. By default, a Cloud Assistant client is installed on ECS instances that are created after December 1, 2017. On ECS instances purchased before December 1, 2017, install a Cloud Assistant client. For more information, see Install the cloud Assistant client.