All Products
Search
Document Center

Database Backup:Add a data source

Last Updated:Dec 13, 2023

Database Backup (DBS) allows you to add databases that are deployed in different environments as data sources. This topic describes how to manually add a data source.

Pricing

You are not charged when you add a data source. You are charged if you enable backup for the added data source. For more information about how to enable backup for a data source, see Back up databases.

Usage notes

If you want to add a data source whose type is User-Created Database with Public IP Address <IP Address:Port Number>, you must manually add the CIDR blocks of DBS servers to the security settings such as firewall settings of the self-managed database. For more information, see Manually add the CIDR blocks of DBS servers to the security settings of self-managed databases.

Procedure

To add a data source, perform the following steps. In this example, an ApsaraDB RDS for MySQL instance is used.

  1. Log on to the Database Backup (DBS) console.

  2. In the left-side navigation pane, click Data Source. On the Data Source page, select a region in the upper-left corner.

  3. On the Data Source page, click Add Data Source.

  4. In the Add Data Source dialog box, set the parameters. The following table describes the parameters.

    Parameter

    Description

    Data source category

    The category of the data source. In this example, Cloud database is selected.

    Note

    For more information about the data sources supported by DBS, see Supported data sources.

    Data source name

    The name of the data source. We recommend that you specify a descriptive name that makes it easy to identify.

    Instance type

    The type of the database instance. In this example, RDS Instance is selected.

    Note

    If you select an ApsaraDB RDS instance that is automatically added as a data source, the system updates the original data source and does not add a new data source.

    For more information, see Configure automatic access to a data source.

    Database type

    The database engine. In this example, MySQL is selected.

    For more information about the database engines supported by DBS, see Database engines and features.

    Database region

    The region in which the database is deployed. You do not need to set this parameter. By default, the system selects the region in which the current database is deployed.

    RDS Instance ID

    The ID of the ApsaraDB RDS instance that you want to back up.

    Note

    You can view the ID of the instance in the ApsaraDB RDS console.

    Database Account

    The username of the account that is used to connect to the database that you want to back up.

    Note
    • You can view the database account in the ApsaraDB RDS console. The account must have the required permissions. For more information, see Account permissions.

    • After you add a data source and configure a database account and password, you can change the database account and password in the DBS console. For more information, see Configure the account and password for a data source.

    Password

    The password of the database account.

  5. Click Test Connection.

    Note
    • If the database account and password that you entered are valid, a message that indicates the connection is successful appears.

    • If the database account and password that you entered are invalid, a message that indicates the connection fails appears. In this case, you can click Check to view the cause of failure.

  6. Click OK.

    You can view the added data source on the Data Source page.

FAQ

  • Q: Why am I unable to select the ID of a specific Elastic Compute Service (ECS) instance when I set parameters in the Add Data Source dialog box?

    A: Check whether the specified ECS instance resides in the same region as the backup schedule. You can view or select a region in the top navigation bar of the DBS console.

  • Q: What do I do if the CIDR blocks of the DBS server fail to be automatically added to the security groups of the ECS instances?

    A: If you revoke the access permissions of DBS on ECS instances, the CIDR blocks of the DBS server fail to be automatically added to the security groups of the ECS instances. To resolve this issue, you must manually add the CIDR blocks of the DBS server to the security groups of the ECS instances. For more information, see Manually add the CIDR blocks of DBS servers to the security settings of self-managed databases.

What to do next

After you add the data source, you can back up the data in the data source. For more information, see Back up databases.

References