All Products
Search
Document Center

Back up a user-created database in an on-premises data center connected to Alibaba Cloud through VPN Gateway or Smart Access Gateway to OSS or DBS

Last Updated: Jun 15, 2020

Database Backup (DBS) allows you to back up user-created databases in on-premises data centers that are connected to Alibaba Cloud through VPN Gateway or Smart Access Gateway to Object Storage Service (OSS) or DBS. This topic describes how to back up a user-created MySQL database deployed in an on-premises data center that is connected to Alibaba Cloud through VPN Gateway to OSS or DBS.

The procedure for backing up a user-created database in an on-premises data center that is connected to Alibaba Cloud through Smart Access Gateway is similar to that through VPN Gateway.

Before you begin

Before you configure a backup schedule, you must configure the connection between the on-premises data center and the DBS server. The following configurations are required:

  1. Make sure that the Elastic Compute Service (ECS) instance in the specified Virtual Private Cloud (VPC) can access the user-created database in your on-premises data center through VPN Gateway.

  2. Modify the configuration of the IPsec-VPN connection used for the VPC. Specifically, add the DBS Classless Inter-Domain Routing (CIDR) block to the local CIDR block, and change the connection version to ikev2.

  3. Modify the configuration of the local gateway based on that of the VPN gateway.

Download the information about the IPsec-VPN connection that is configured in the preceding step. Adjust the configuration of the local gateway based on the requirements on on-premises network devices and the modified configuration of the VPN gateway.

Note: The values of RemoteSubnet and LocalSubnet in the configuration for the local gateway device are opposite to the remote CIDR block and local CIDR block that you specified for the IPsec-VPN connection. For VPN Gateway, the remote CIDR block is the CIDR block of the on-premises data center, and the local CIDR block is that of the VPC. For the local gateway device, LocalSubnet indicates the CIDR block of the on-premises data center, whereas RemoteSubnet indicates that of the VPC.

The DBS CIDR block to be added varies with the region of the VPC. The following table lists the DBS CIDR blocks of regions that support database backup through VPN Gateway.

Region DBS CIDR block
China (Hangzhou) 100.104.217.0/24
China (Beijing) 100.104.119.0/24
China (Qingdao) 100.104.183.0/24
China (Shanghai) 100.104.191.0/24
China (Shenzhen) 100.104.81.0/24
China (Hong Kong) 100.104.10.0/24
Singapore 100.104.10.0/24
Japan (Tokyo) 100.104.144.0/24
China (Hohhot) 100.104.40.0/24
China (Zhangjiakou) 100.104.48.0/24
US (Virginia) 100.104.220.0/24
US (Silicon Valley) 100.104.17.0/24
Australia (Sydney) 100.104.234.0/24
Germany (Frankfurt) 100.104.133.0/24
Malaysia (Kuala Lumpur) 100.104.10.0/24
Indonesia (Jakarta) 100.104.209.0/24

Configure a backup schedule

Log on to the DBS console. In the left-side navigation pane, click Backup Schedules. On the Backup Schedules page that appears, find the target backup schedule and click Configure Backup Schedule in the Actions column. In the Configure Backup Schedule wizard, set Database Location to Express Connect DB/VPN Gateway/Intelligent Gateway.
14