Database Backup can access databases of the bastion host structure. Servers where such databases are deployed are in an internal network and cannot be connected to the Internet. The servers must use a bastion host proxy to access the Internet. You must install a database gateway on the bastion host and install a backup gateway on the database server.

Procedure summary

Step Description
Step 1: Install a database gateway Install a database gateway on the bastion host.

Database gateway: During backup, it receives the data sent from the database host where the backup gateway is located and forwards the data to Database Backup cloud storage over the Internet. During restoration or database downloading, it receives the data from Database Backup cloud storage and forwards the data to the database host.

Step 2: Install a backup gateway Install a backup gateway on the server where the database is deployed. When you install the backup gateway, you must enter the internal IP address of the bastion host in the Database Gateway Address field.

Backup gateway: It is installed on the database host. During backup, it connects and queries the database, sends data to the bastion host where the database gateway is installed, and then forwards data to the outside. During recovery, it obtains data from the outside by using the database gateway (bastion host), and then writes data to the database by using the backup gateway.

Step 1: Install a database gateway

The following example describes how to install a database gateway on a bastion host that runs the Limux operating system. Database Backup supports a variety of installation methods such as command line and GUI. For more information about installation methods, prerequisites and precautions, see Add a backup gateway.

  1. Log on to the DBS console.
  2. In the left-side navigation pane, click Backup Gateways and select the required region in the upper-left corner.
    Select a backup gateway in a backup region
    Note Select the region closest to where your database is deployed. For example, if your database is deployed in Hangzhou, we recommend that you install a backup gateway in the China (Hangzhou) region.
  3. Click Install Backup Gateway in the upper-right corner of the page.
    Install Backup Gateway
  4. Select Backup Gateway Network Type and copy the command to install the backup gateway. Run the command on the database server.
    Note
    • Public Network: You can access DBS by using a public IP address.
    • ECS Private Network / VPC: You can access DBS by using a dedicated line from Alibaba Cloud.
    Copy the installation command of the backup gateway on the -linux command line
    1. On the Linux command line, run the command.
      Run the command on the -linux command line
      The system downloads and runs the installation package.
    2. Select an installation language. Enter 1 to select English.
      Select the -linux installation language
    3. Enter 1 to read the DBS backup gateway agreement.
      Read the agreement
    4. Enter 1 to accept the DBS backup gateway agreement.
      Accept the agreement
    5. Select components to install. By default, the backup gateway (Agent) is installed. Enter N.
      The system will install the database gateway.
    6. Enter the Y to confirm the installation.
    7. Confirm the path of the installation.
    8. Confirm the components to be installed. Enter 1 to start the installation.
      Wait for the installation to complete. The installation takes about 1 minutes.

Step 2: Install a backup gateway

Install a backup gateway on the database host. For more information, see Install a backup gateway by using command lines, Install a backup gateway in GUI, or Unattended installation.

During the installation, you must enter the IP address and port number of the database gateway. The IP address is the internal IP address of the bastion host and the default port number is 9797.
Note Then, the system tries to connect to the database gateway (the bastion host specified in Step 1). If the connection fails, the system returns an error. You must check the installation of the database gateway again. For more information, see Step 1: Install a database gateway.

After the backup gateway is installed, backup data is sent to the bastion host where the database gateway is installed, and then forwarded to the outside by the bastion host.