Database Backup (DBS) can automatically archive backup sets to backup servers. Backup sets under an internal RDS account can be archived to servers under a backup account. This way, data of the two accounts is isolated from each other to avoid the risk of data loss caused by database deletion. This topic describes how to automatically archive ApsaraDB for RDS backup sets to ECS instances.
DBS can automatically download backup sets. Backup sets within an internal RDS account can be automatically archived to servers under a backup account. Disabling automatic download of backup sets through the internal RDS account does not affect the automatic archiving of backup sets to backup servers.
- Use an internal RDS account to create a DBS backup schedule and enable automatic backup.
- Use a backup account to purchase an ECS instance as a backup server.
- Install a backup gateway on the ECS instance through the AccessKey pair of the internal RDS account.
- Use the internal RDS account to enable automatic download of backup sets.
Log on to the DBS console and click Backup Schedules in the left-side navigation pane. On the Backup Schedules page, click Configure Backup Schedule in the Actions column corresponding to the backup schedule. In the Configure Backup Source and Destination step of the Configure Backup Schedule wizard, select RDS Instance from the Database Location drop-down list.
For more information, see Configure a backup schedule.
Log on to the DBS console, obtain the installation command of the backup gateway, and then install the backup gateway on the ECS instance.
Install the backup gateway.
Enter the AccessKey pair of the internal RDS account.
Log on to the DBS console and click Backup Schedules in the left-side navigation pane. On the Backup Schedules page, click the backup schedule to go to the Configure Task page. In the Backup set download section, click Set backup set download rules.
In the left-side navigation pane of the Configure Task page, click Backup Set Download. On the page that appears, view the download progress of backup sets.