If you need to back up files from a local host that does not have an Internet connection, you need to connect the host to an Alibaba Cloud VPC by using a VPN gateway or a dedicated line. Then, you can create a configuration file named hybridbackup.toml. This topic describes how to create the hybridbackup.toml configuration file.

Prerequisites

  • Currently, you can only connect VPN gateways or dedicated lines to local servers in cn-beijing, cn-shanghai, cn-hangzhou and cn-shenzhen regions.
  • You have installed a backup client. For more information about how to install a backup client, see Install and activate a client. You do not need to activate the backup client.
  • If you need to connect the local host to a VPC through a VPN gateway, you must create a VPN gateway. For more information, see Create a VPN Gateway.

Procedure

  1. Create a configuration file.
    • If the Hybrid Backup Recovery client installed in Windows
      1. Enter the client folder of the client installation folder. For example, C:\Program Files\Aliyun Hybrid Backup Service\client.
      2. Create a configuration file and name the file hybridbackup.toml.
      3. Open the hybridbackup.toml file and add the following information.
        Note Replace cn-hangzhou in the example with your actual region.
        [Server]
        Endpoint = "<hbr-vpc.[cn-hangzhou].aliyuncs.com>"
    • If the Hybrid Backup Recovery client installed in Linux
      1. Enter the client folder of the client installation folder. For example, /opt/alibabacloud/hbr/client.
      2. Create a configuration file and name the file hybridbackup.toml.
      3. Open the hybridbackup.toml file and add the following information.
        Note Replace cn-hangzhou in the example with your actual region.
        [Server]
        Endpoint = "<hbr-vpc.[cn-hangzhou].aliyuncs.com>"
  2. Restart the backup service.
    • Backup clients that are installed on Windows

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

    • Backup clients that are installed on Linux

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