Before you back up files from an on-premises host that is not connected to the Internet, you must connect the host to a virtual private cloud (VPC) by using a VPN gateway or an Express Connect circuit. Then, you can create a configuration file named hybridbackup.toml to back up files from the host. 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), or China (Shenzhen) region. The on-premises host is connected to a VPC by using a VPN gateway or an Express Connect circuit.
  • A backup client is installed. For more information, see Step 2: Install and activate the backup client.
  • A VPN gateway is created. If you want to use a VPN gateway to connect the host to a VPC, you must create the VPN gateway. For more information, see Create a VPN gateway.

Procedure

  1. Create a configuration file.
    • For Windows, perform the following steps:
      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 named 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.
        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
    • For Linux, perform the following steps:
      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 named 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.
        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
  2. Restart the backup service.
    • For Windows, perform the following steps:

      Open the command prompt, enter services.msc, and then press Enter. In the Services dialog box, find and restart Aliyun Hybrid Backup Service.

    • For Linux, perform the following steps:
      Run the following command to restart the backup service:
      # Restart the backup service in Linux version 2.x.
      systemctl restart hbrclient
      restart hbrclient
      /etc/init.d/hbrclient restart
      
      # Restart the backup service in Linux version 1.x.
      systemctl restart hybridbackup
      restart hybridbackup
      /etc/init.d/hybridbackup restart