Before you back up files from an on-premises host that does not have the Internet access, you must connect the host to an Alibaba Cloud VPC by using a VPN gateway or a dedicated data circuit. Then, you can back up files from the host by creating a configuration file named hybridbackup.toml. This topic describes how to create and configure the hybridbackup.toml configuration file.

Prerequisites

  • The on-premises host resides in the China (Beijing), China (Shanghai), China (Hangzhou), and China (Shenzhen) regions. The on-premises host is connected to a VPC by using a VPN gateway or dedicated data circuit.
  • A backup client is installed. For more information, see Step 2: Install and activate the backup client. You do not need to activate the backup client.
  • If the on-premises host is connected to the VPC by using a gateway, the VPN gateway is created. For more information, see Create a VPN gateway.

Procedure

  1. Create a configuration file.
    • Windows
      1. Go to the client directory in the installation directory of the backup client, for example, C:\Program Files\Aliyun Hybrid Backup Service\client.
      2. Create a configuration file. Set the file name to hybridbackup.toml.
      3. Add the following information to the hybridbackup.toml file and save the file:
        Notice Replace cn-hangzhou with the ID of the region where the on-premises host resides. The ID of the China (Beijing) region is cn-beijing, the ID of the China (Shanghai) region is cn-shanghai, the ID of the China (Hangzhou) region is cn-hangzhou, and the ID of the China (Shenzhen) region is cn-shenzhen.
        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
    • Linux
      1. Go to the client directory in the installation directory of the backup client, for example, /opt/alibabacloud/hbr/client.
      2. Create a configuration file. Set the file name to hybridbackup.toml.
        vi /opt/alibabacloud/hbr/client/hybridbackup.toml
      3. Add the following information to the hybridbackup.toml file and save the file:
        Notice Replace cn-hangzhou with the ID of the region where the on-premises host resides. The ID of the China (Beijing) region is cn-beijing, the ID of the China (Shanghai) region is cn-shanghai, the ID of the China (Hangzhou) region is cn-hangzhou, and the ID of the China (Shenzhen) region is cn-shenzhen.
        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
  2. Restart the backup service.
    • Windows

      Open the command prompt, enter services.msc, and press Enter. In the Services dialog box, find and restart the Aliyun hybrid backup service.

    • Linux

      Run the service hybridbackup restart command to restart the backup service.