FAQ about ECS backup

Updated at:

This topic helps you resolve common issues when backing up an ECS instance.

Delete ECS file backup data

Important

Deleting an instance also deletes its backup data and causes any running backup or restore jobs to fail. Before you delete an instance, ensure you no longer need its backup data and that no backup or restore jobs are running for the instance.

Standard edition

  1. Log on to the Cloud Backup console.

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

  3. In the top navigation bar, select the region where your instance is located.

  4. Find the ECS instance whose backup data you want to delete. In the Actions column, choose ┇ > Delete Backup.

  5. In the confirmation dialog box, click Confirmation.

Basic edition

  1. Log on to the Cloud Backup console.

  2. In the left-side navigation pane, choose Back Up > ECS File Backup Basic Edition.

  3. In the top navigation bar, select the region where your instance is located.

  4. Find the ECS instance whose backup you want to cancel. In the Actions column, click Cancel Backup.

  5. In the confirmation dialog box, click Confirmation.

Client initialization error during installation

  • Issue

    When you install the backup client on an ECS instance, the installation fails with the error message "Failed to initialize client".

  • Cause

    The ECS instance has antivirus software installed.

  • Solution

    1. Stop the antivirus software.

      1. Log on to the ECS instance.

        For more information about how to log on to an ECS instance, see Connect to an ECS instance.

      2. Check whether antivirus software is installed on the ECS instance.

      3. Stop the antivirus software.

    2. Uninstall and reinstall the Cloud Backup client.

      1. Log on to the Cloud Backup console.

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

      3. In the top navigation bar, select the region where your instance is located.

      4. Find the target ECS instance and choose ┇ > Uninstall Client in the Actions column.

      5. In the dialog box that appears, click Confirmation.

        The client status changes to Uninstalling.

      6. After the client is uninstalled, find the target ECS instance and choose <hd> More </hd> > Reinstall Client in the Actions column.

        The client status changes to Installing. After the installation is complete, the status changes to Activated.

        Note

        If the issue persists, submit a ticket for support.

Client installation timeout or service start error

This issue can occur if an antivirus program is blocking the installation. To resolve this, stop the antivirus program and try to install the client again.

Client verification error during upgrade

This can occur if the Cloud Backup client has been uninstalled or the ECS instance is stopped. If the Cloud Backup client is uninstalled, reinstall it from the console. If the ECS instance is stopped, start the ECS instance.

Backup client upgrade failure

  • Issue

    The backup client fails to upgrade.

  • Cause

    The upgrade service of the backup client is not running.

  • Solution

    Log on to the server where the backup client is located and start the upgrade service.

    1. Log on to the server where the backup client is located.

    2. Go to the directory where the upgrade service is located.

      • Linux

        • The default installation path for an older version of the backup client is /opt/alibabacloud/hbr/update.

        • The default installation path for a newer version of the client is /opt/alibabacloud/hbrclient/update.

      • Windows

        • The default installation path for an older version of the backup client is Local Disk (C) > Program Files > Aliyun Hybrid Backup Service > update.

        • The default installation path for a newer version of the client is Local Disk (C) > Program Files > Aliyun Hybrid Backup Service Client > update.

    3. Restart the upgrade service.

      • Linux

        ./updater
      • Windows

        Run updater.exe to start the upgrade service.

Client installation failure: Missing role policy

Go to the Cloud Resource Access Authorization page to grant the required permissions. After granting the permissions, reinstall the client.

Restore a released ECS instance by cloning

Yes, you can.

The recovery point must be within its retention period. After you create an ECS instance backup job, Cloud Backup starts the job at the specified time. You can view the recovery points in the backup history.

image

  • If the source ECS instance exists, you can restore it directly. If you have released the source instance, you can restore the data by cloning it to a new ECS instance.

  • You are charged for the new ECS instance based on the ECS billing rules. For more information, see Pay-as-you-go for ECS.

  • Restoring an ECS instance to a specific point in time clears any data written to the protected cloud disk after that point. Perform this operation with caution.

For more information, see Restore an ECS instance.

Security Center anti-ransomware vs. Cloud Backup

The anti-ransomware (server data backup) feature is a data backup and recovery service jointly provided by Security Center and Cloud Backup to protect against ransomware. If a server or database is infected by ransomware, you can use this service to quickly restore your data.

Cloud Backup is a unified disaster recovery platform from Alibaba Cloud. It allows you to back up data, manage disaster recovery, and set archive policies for Alibaba Cloud resources (such as ECS instances, databases, NAS, and OSS) and on-premises data centers.

When you enable the anti-ransomware feature for an ECS server in the Security Center console, Security Center installs a Cloud Backup client on the ECS server for data backup and restoration.

The anti-ransomware feature and Cloud Backup ECS File Backup Standard Edition both use the hbrclient client. However, they differ in the installation directory and the product to which they belong, as described in the following table:

Item

Cloud Backup Standard file backup

Security Center Anti-ransomware

Process

hbrclient

On an ECS server, run the systemctl status hbrclient command to query the running status of the backup client.

Installation directory

  • Log path on Linux: /opt/alibabacloud/hbrclient

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

  • Log path on Linux: /usr/local/aegis/hbrclient

  • Log path on Windows: Local Disk (C) > Program Files (x86) > Alibaba > Aegis > hbrclient

Uninstallation

Uninstall the client only in the Cloud Backup console. Otherwise, the console displays an Uninstallation Failed message.

Uninstall the client only in the Security Center console. Otherwise, the console displays an Uninstallation Failed message.

How it works

Overview of ECS File Backup Standard Edition

Anti-ransomware Service Overview

Billing

Billed by Cloud Backup. For more information, see Billing methods and billable items of Cloud Backup.

Billed by Security Center.

FAQ

Delete snapshots of a removed ECS instance

After you remove a released ECS instance from the ECS instance backup console, the option to delete its recovery points becomes unavailable. To delete the backup data of the ECS instance, you must contact Cloud Backup support or join the DingTalk group for assistance.

  • Cloud Backup Technical Support Group

    Get quick answers to your questions about pricing, features, and usage. Click to join Cloud Backup Online Support (Chrome is recommended). Search for and join the public group using DingTalk ID 88650005148.

  • Cloud Backup Expert Support

    Technical experts provide live analysis to quickly resolve product issues. Click to contact Cloud Backup support (Chrome is recommended). Add the contact on DingTalk using the ID: d37_g935gslgo.

Backup IDs in ECS instance backups

This section explains the meaning and relationships of backup IDs across instance backups, cloud disk backups, and backup jobs:

  • The backup ID is a unique identifier. Every backup, whether for a full instance or a single cloud disk, receives a unique backup ID.

  • For each recovery point from an ECS instance backup, its ID in the instance backup history (instance backup ID) is linked to one or more IDs in the cloud disk backup history (cloud disk backup IDs). This forms a 1:N relationship.

  • The backup ID in a backup job is the snapshot ID.

image

image

image

Find uninstalled clients with remaining backup data

On the Restore Jobs tab, click Create Restore Job in the upper-left corner and specify a backup vault. This allows you to view backup data that is still within its retention period and find the corresponding client information. You can then identify which uninstalled clients still have retained backup data.

image

Files corrupted or not restored after basic recovery

  • Issue

    After you restore files by using ECS File Backup Basic Edition, the files are still corrupted by a virus, or zero files are restored.

  • Cause

    ECS File Backup Basic Edition backs up only user data and excludes system directories and temporary files. If virus-infected files are in a system directory, the file backup cannot overwrite them. In this case, restoring zero files is expected behavior.

    Excluded directories on Linux systems include: /bin/, /usr/bin/, /sbin/, /usr/sbin/, /srv/, /selinux/, /lib/, /lib32/, /lib64/, /boot/, /run/, /dev/, /proc/, /sys/, /lost+found/, and the client installation directory.

    Excluded directories on Windows systems include all directories named Windows\, python27\, Program Files (x86)\, Program Files\, ProgramData\, or Boot\. The $RECYCLE.BIN\ and System Volume Information\ directories, files named Users\Administrator\NTUSER.DAT, Users\Administrator\ntuser.dat.LOG*, or pagefile.sys, and the client installation directory are also excluded.

    Other reasons for restoring zero files include: no changes were made to files within the backup scope, or a virus has already encrypted the files in the backup path.

  • Solution

    If system directory files are infected or corrupted, perform a full recovery by using an ECS snapshot. A snapshot is a block-level backup that can roll back the entire cloud disk, including system directories. This makes it suitable for full recovery after system files are infected.

    The difference between ECS File Backup Basic Edition and an ECS snapshot is as follows: A file backup is file-level and excludes system directories. A snapshot is block-level and covers the entire cloud disk, including system directories. We recommend that you use both features together: use file backup for daily protection of user data and snapshots for system-level disaster recovery.

    To restore from an ECS snapshot, go to the ECS Snapshot console. In the snapshot list, select the target snapshot and click Roll Back Disk.

View incremental data for an ECS instance backup

On the ECS Instance Backup page, you can view the total daily snapshot size in the Backup Capacity History section. Viewing the incremental snapshot data for each individual server on a given day is not currently supported.

image

Change resource group for backup snapshots

The ECS instance backup feature does not support specifying a resource group. Therefore, snapshots created by this feature are automatically assigned to the default resource group.

  1. Change the resource group of the snapshot in the Snapshot console. For specific instructions, contact the snapshot service.

  2. Configure the automatic transfer feature in the Resource Management console. Note that this feature does not apply to consistency groups. For more details, contact the Resource Management service.

Delete cloud disk snapshots from instance backups

  1. Log on to the Cloud Backup console.

  2. On the ECS Instance Backup page, you can delete cloud disk snapshots in one of the following two ways.

    • In the Actions column of the target ECS instance, choose ┇ > Delete Backup Point, and then select a recovery point to delete.

    • On the instance backup history tab, find the recovery point that you want to delete and click Delete in the Actions column.

      image

      Important

      If deleting the recovery point fails, the possible causes are as follows:

      • The "Keep at least one backup" option is enabled in the instance backup policy that is associated with the target ECS instance. As a result, the last backup cannot be deleted. We recommend that you first disable this option and then try to delete the backup again.

      • If backup lock is enabled in the instance's backup policy, its recovery points cannot be deleted before they expire. The backup data is automatically released after it expires.

  3. (Optional) If you cannot find the recovery point on the Instance Protection tab, switch to the Disk Protection tab, find the recovery point that you want to delete, and click Delete in the Actions column.

    image

Backing up database files with ECS file backup

Do not use ECS File Backup Standard Edition to back up database files like SQL Server .mdf and .ldf files. Database management systems (DBMS) exclusively lock these files during runtime to ensure data consistency. Attempting a direct file system backup of these locked files will either fail or create an inconsistent backup, making the data unreliable for restoration. To safely back up databases, use the dedicated database backup feature.

Remote replication failure: Unfinished copy task

  • Issue

    Remote replication for an ECS instance fails, and the console displays the message: "This disk has an unfinished copy task".

  • Cause

    Remote replication is partially completed or fails. This may be because other related jobs are running when remote replication is performed. For example, a snapshot of the same cloud disk is being replicated. This can cause resource contention or operation conflicts, which affects the remote replication job.

    An ECS instance backup job is automatically created based on the backup time that you set. After the job is created, the system immediately runs the backup job. After the backup is complete, the system immediately performs remote replication if remote replication is configured. However, a backup job or remote replication job may fail in the following cases:

    • When a backup job is running, if a snapshot is being created for the same cloud disk, the backup job for that cloud disk may fail.

    • When a remote replication job is running, if a snapshot of the same cloud disk is being replicated, the remote replication job for that cloud disk may fail.

  • Solution

    To ensure that backup jobs and remote replication jobs run smoothly, we recommend that you avoid performing other snapshot operations on the related cloud disks during the backup period. This can reduce the possibility of job conflicts.

After a SUSE system is restored from an ECS full machine backup, why does thenew instance's /etc/hosts file contain SMT configuration information? How can this information be removed?

  • Issue

    After you restore a SUSE (SUSE Linux Enterprise Server 15 SP5 64-bit) system by using an ECS instance backup, the /etc/hosts file in the new instance contains the following configuration information related to the Software Maintenance Tool (SMT):

    # Added by SMT registration do not remove, retain comment as well
    mirrors-ssl.aliyuncs.com        mirrors-ssl.aliyuncs.com        mirrors-ssl
  • Cause

    The Software Maintenance Tool (SMT) is a system maintenance and registration tool provided by Alibaba Cloud. During system restoration, the SMT service automatically adds related entries to the /etc/hosts file to configure the network access path for the ECS instance. This ensures that the instance can connect to the Alibaba Cloud mirror source (mirrors-ssl.aliyuncs.com), which guarantees smooth system updates and package downloads.

  • Solution

    If you confirm that the system does not require the SMT feature, run the systemctl disable guestregister command to disable the service. This operation does not affect the normal operation of the system and prevents the SMT service from automatically modifying the /etc/hosts file at startup. After you disable the service, the related SMT configuration information will no longer appear when you perform operations such as system cloning.

VSS backup job 'Expired' failure

  • Issue

    After you enable Volume Shadow Copy Service (VSS), an ECS file backup job or a local file backup job times out and fails. The console displays the job status as "Expired".

    image

  • Cause

    The time required to create a VSS snapshot depends on the system environment, such as high I/O load and the number of snapshots. If the process takes too long, the ECS file backup job or local file backup job times out and fails.

  • Solution

    Check the system status as follows:

    1. Check whether the VSS service is running properly.

      1. Open the Services Manager (services.msc).

      2. Check whether the status of the VSS service is "Running" and the startup type is "Automatic".

      3. If the service is abnormal, try to restart it and check if it recovers.

    2. Purge redundant VSS snapshots.

      An excessive number of locally retained VSS snapshots can cause delays when you create new snapshots.

      1. Open Command Prompt as an administrator and run the following command to view existing snapshots:

        vssadmin list shadows
      2. Delete old snapshots that are no longer needed to free up system resources.

        Important

        Once deleted, VSS snapshots cannot be recovered. Before you delete a snapshot, make sure that you no longer need to retain it.

    3. Evaluate the I/O load of the local disk.

      High disk load significantly affects snapshot creation performance. Avoid running backup jobs during peak business hours. We recommend that you run VSS backups during off-peak hours to reduce I/O conflicts.

    4. Check the Windows Event logs.

      Check the system logs for errors or warnings related to VSS.

      1. Open Event Viewer > Windows Logs > System.

      2. Filter for events from the VSS or VolSnap sources to analyze the specific cause of the error.