Updated on 2024-09-25 GMT+08:00

Configuring Remote Backup

After a remote backup server is configured, if a file in a protected directory is changed, HSS will back up the updated file. By default, HSS backs up files in the protected directory to the local backup path configured in the Add Protected Directory dialog box. (Excluded subdirectories and file types will not be backed up). Enable remote backup to prevent local backup files from being damaged by attackers.

If the file and backup directory on the local server become invalid, you can log in to the remote backup server, obtain backup files, and manually restore the tampered websites. You can view backup paths on the Manage Remote Backup Server page. For details, see Changing a Remote Backup Server.

Constraints and Limitations

  • Only Linux servers support remote backup.
  • The server used for remote backup must meet the following requirements:
    • Huawei Cloud Linux servers
    • The server status is Running.
    • The HSS agent has been installed on the server and its Agent Status is Online.
    • The remote backup function can be used when the Linux backup server is connected to the protected cloud server. To ensure proper backup, you are advised to select a backup server on the same intranet as your cloud server.
    • You are advised to use intranet servers least exposed to attacks as the remote backup servers.

Adding a Remote Backup Server

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. Choose Server Protection > Web Tamper Protection. Click Configure Protection in the Operation column.

    If your servers are managed by enterprise projects, you can select an enterprise project to view or operate the asset and scan information.

    Figure 1 Entering the page of protection settings

  4. Click Settings under Protected Directory Settings.

    Figure 2 Page for setting a protected directory

  5. Click Manage Remote Backup. In the dialog box that is displayed, click Add Backup Server. For details, see Table 1.

    Figure 3 Configuring the backup server
    Table 1 Backup server parameters

    Parameter

    Description

    Example Value

    Address

    This address is the private network address of the Huawei Cloud server.

    192.168.0.249

    Port

    Ensure that the port is not blocked by any security group or firewall or occupied.

    8080

    Backup Path

    Path of remote backup files.

    • If the protected directories of multiple servers are backed up to the same remote backup server, the data will be stored in separate folders named after agent IDs.

      Assume the protected directories of the two servers are /hss01 and hss02, and the agent IDs of the two servers are f1fdbabc-6cdc-43af-acab-e4e6f086625f and f2ddbabc-6cdc-43af-abcd-e4e6f086626f, and the remote backup path is /hss01.

      The corresponding backup paths are /hss01/f1fdbabc-6cdc-43af-acab-e4e6f086625f and /hss01/f2ddbabc-6cdc-43af-abcd-e4e6f086626f.

    • If WTP is enabled for the remote backup server, do not set the remote backup path to any directories protected by WTP. Otherwise, remote backup will fail.

    /hss01

  6. Click OK.

Setting remote backup

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. Choose Server Protection > Web Tamper Protection. Click Configure Protection in the Operation column.

    If your servers are managed by enterprise projects, you can select an enterprise project to view or operate the asset and scan information.

    Figure 4 Entering the page of protection settings

  4. Click Settings under Protected Directory Settings.

    Figure 5 Page for setting a protected directory

  5. Click Enable Remote Backup and select a remote backup server.
  6. Click OK to start remote backup.

Changing a Remote Backup Server

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. Choose Server Protection > Web Tamper Protection. Click Configure Protection in the Operation column.

    If your servers are managed by enterprise projects, you can select an enterprise project to view or operate the asset and scan information.

    Figure 6 Entering the page of protection settings

  4. Click Settings under Protected Directory Settings.

    Figure 7 Page for setting a protected directory

  5. Click Manage Remote Backup Servers. The Manage Remote Backup Servers page is displayed. Click Edit in the Operation column to modify the information about the remote backup server.
  6. Click OK.

Related Operations

Disabling remote backup

Exercise caution when performing this operation. If remote backup is disabled, HSS will no longer back up files in your protected directories.