All Products
Search
Document Center

Cloud Backup:Back up files from a local server that is not connected to the Internet

Last Updated:Sep 21, 2023

Before you back up files from a local server that is not connected to the Internet, you must connect the server 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 server. This topic describes how to create and configure the hybridbackup.toml configuration file.

Prerequisites

  • The local server resides in the China (Beijing), China (Shanghai), China (Hangzhou), or China (Shenzhen) region. The local server is connected to a VPC by using a VPN gateway or an Express Connect circuit.

  • A backup client is installed. You do not need to activate the backup client. For more information, see Before you begin.

  • A VPN gateway is created. If you want to use a VPN gateway to connect the local server to a VPC, you must create the VPN gateway. For more information, see Create and manage a VPN gateway.

Procedure

  1. Create a configuration file.

    • If the backup client runs on Windows, perform the following steps:

      1. Go to the client directory in the installation directory of the backup client.

        Note
        • By default, the installation path for a backup client of version 1.x is C:\Program Files\Aliyun Hybrid Backup Service.

        • By default, the installation path for a backup client of version 2.x is C:\Program Files\Aliyun Hybrid Backup Service Client. We recommend that you use an Express Connect circuit to connect your local server to a VPC. In Client Settings, the Network parameter must be set to VPC.

      2. Create a configuration file named hybridbackup.toml.

      3. Add the following information to the hybridbackup.toml file and save the file:

        Important

        Replace cn-hangzhou with the ID of the region where the local server resides.

        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
    • If the backup client runs on Linux, perform the following steps:

      1. Go to the client directory in the installation directory of the backup client.

        Note
        • The default installation path for a backup client of version 1.x is /opt/alibabacloud/hbr.

        • The default installation path for a backup client of version 2.x is /opt/alibabacloud/hbrclient. We recommend that you use an Express Connect circuit to connect your local server to a VPC. In Client Settings, the Network parameter must be set to VPC.

      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:

        Important

        Replace cn-hangzhou with the ID of the region where the local server resides.

        [Server]
        Endpoint = "hbr-vpc.cn-hangzhou.aliyuncs.com"
  2. Restart the Cloud Backup service.

    • Windows backup client

      Open the Command Prompt, enter services.msc, and then press Enter. In the Services dialog box, find and restart the Cloud Backup service.

    • Linux backup client

      Run the following command to restart the Cloud Backup service:

      # Restart the Cloud Backup service in Linux version 2.x.
      systemctl restart hbrclient
      restart hbrclient
      /etc/init.d/hbrclient restart
      
      # Restart the Cloud Backup service in Linux version 1.x.
      systemctl restart hybridbackup
      restart hybridbackup
      /etc/init.d/hybridbackup restart