Restore ECS files

Updated at:

After you use the ECS File Backup Standard Edition to back up files to a cloud backup vault, if files on an ECS instance are lost or abnormal, you can restore them from a historical recovery point to the source ECS instance, a new ECS instance, or an on-premises server.

Prerequisites

  • An ECS file backup has been completed, and at least one historical recovery point exists. For more information, see Back up ECS files.

  • Prepare the restore destination:

    • Restore to the source ECS instance: No additional operations are required.

    • Restore to a new ECS instance: The destination instance must have a backup client installed, and its Client Status must be Activated on the ECS File Backup Standard Edition page in the console. The system does not automatically install the client on the destination instance.

    • Restore files when no ECS instance is available

      If the original ECS instance has been released and no other ECS instance is available, perform the following steps:

      1. Purchase a pay-as-you-go ECS instance. For more information, see Create a pay-as-you-go ECS instance.

      2. Install the Cloud Backup client on the ECS instance. Make sure that the endpoint policy of the VPC where the ECS instance resides allows access to Cloud Backup OSS resources. Otherwise, the client installation fails.

      3. Log on to the Cloud Backup console and restore the required files to the ECS instance.

      4. Download the restored files to your local machine over SSH or by other means.

      5. Release the ECS instance promptly after the restoration is complete to avoid continued billing.

      This method is suitable for scenarios where you have no on-premises server and no available ECS instance.

    • Restore to an on-premises server: The destination server must have a backup client installed (Linux and Windows are supported), and its Client Status must be Activated on the On-Premises File Backup page in the console. The system does not automatically install the client on the destination server. For detailed steps, see Download and activate the Windows client and Linux client.

Usage notes

When you restore ECS files, socket files and hard links are not supported.

Billing

The restore feature itself is free of charge. However, the following additional fees may apply:

Restore scenario

Additional fees

Restore to the source ECS instance

No additional fees

Restore to a new ECS instance

An additional file backup software usage fee for one client

Restore to an on-premises server

An additional file backup software usage fee for one client and outbound Internet traffic fees

Enable virus detection during restoration

Billed by the number of scanned files (approximately CNY 1.5 per 1,000 files)

For more information about billing, see Billing methods and billable items.

Create a restore job

  1. Log on to the Cloud Backup console.

  2. In the left-side navigation pane, choose ECS File Backup Standard Edition.

  3. At the top of the ECS File Backup Standard Edition page, select the region in which the target ECS instance resides.

  4. Find the target ECS instance and click View Details in the Actions column on the right side.

  5. In Backup History, find the target recovery point and click Restore in the Actions column.

    Note
    • You can also click the image icon to the right of the backup history to switch the display mode, select a recovery point in the timeline view, and then select Restore. Backup data can vary between recovery points, so select an appropriate historical recovery point.

    • If you are using the old console (with Try New Version displayed in the upper-right corner), you can perform the same operation by clicking the image icon next to the target instance on the Backup Plans tab.

  6. In the Create Restore Job panel, complete the following three steps as instructed by the configuration wizard.

    1. Step 1: Select restore items

      Configure the scope of files to restore, and then click Next.

      Parameter

      Description

      Restore Items

      Select the scope of files to restore. The following three options are mutually exclusive:

      • Include All Files: Restores all files from the source client.

      • Include Files: Restores only the selected files or folders. You can also click Enter Paths to manually enter file paths.

      • Exclude Files: Excludes the selected files or folders and restores all the others.

      Note

      When you use Enter Paths to enter file paths, enter one path per line. Each path must start with the last folder of the source backup path. For example, if the backup path is /opt/data, to restore the data directory's file.txt and abc.png, enter the paths in the following format:

      /data/file.txt
      /data/abc.png
    2. Step 2: Restore destination

      Configure the restore destination, and then click Next.

      Parameter

      Description

      Destination Type

      Select the restore destination type:

      • ECS Client: Select this type to restore to the source ECS instance or a new ECS instance.

      • On-premises Client: Select this type to restore to an on-premises server.

      Specify Account

      This option is displayed only when Destination Type is ECS Client.

      Specify the account to which the restore destination resource belongs. You can select the current account or an added account that requires backup. After you switch accounts, the client list below displays only the clients in the selected account.

      Backup Client Name/ID

      Select the destination client. Only clients whose Client Status is Activated are displayed in the list.

    3. Step 3: Restore path

      Configure the restore path and policies, and then click Start to Restore.

      Parameter

      Description

      Restore Path Type

      • Specify Path: Restores files to a custom path. If you select this option, you must enter a specific restore path.

      • Origin Path: Restores files to the original path where they were located when the files were backed up.

      Destination Path

      This parameter is required only when Restore Path Type is set to Specify Path. Enter the destination restore path.

      Important

      Make sure that the restore path exists. The system does not automatically create the destination directory. If the path does not exist, the restore job fails.

      File Conflict Policy

      The action to take when a file with the same name exists in the restore path:

      • Skip This File (default): Skips conflicting files without overwriting them.

      • Overwrite The File: Directly overwrites the file with the same name in the destination path.

      • Compare update times (accurate to the second) and retain the latest version.: Compares file update times and keeps only the newer version.

      Virus Detection During Restoration

      This feature is disabled by default. After you enable it, Cloud Backup performs virus detection on all files to be restored during the restoration.

      Important

      Virus detection is a paid feature. For more information, see Billing methods and billable items.

      When Recovery Items Contain Detected Viruses

      • Do not restore virus-infected files (you can find safe versions on the Virus Detection page)

      • I am aware of the risks and still want to restore all the selected items

View restore progress

After the restore job is created, you can view its progress in the Status column on the Restore Jobs tab.

When the status shows Completed (100%), log on to the destination ECS instance or on-premises server to view the restored files.

Troubleshooting

Symptom

Possible cause

Solution

Client Status is abnormal

The backup client is running abnormally or is not properly activated.

Check the client status and make sure that Client Status is Activated. For more information, see Troubleshoot Cloud Backup client status exceptions.

The restore job status is Failed

Incorrect configuration or a client error

  1. Check whether the configuration is correct.

  2. Check the client status.

  3. View the logs to identify the specific ErrorCode.

The restore job status is Partially Completed

Some files failed to be restored.

Download the list of files that were not restored, resolve the issues based on the error messages, and then run the restore job again.

Note

The default installation paths of the backup client are listed below for reference. Use the actual installation paths in your operations.

  • Windows log path: Local Disk (C) > Program Files > Aliyun Hybrid Backup Service Client > logs

  • Linux log path: /opt/alibabacloud/hbrclient/logs

If you need further assistance, contact Online technical support.

References