All Products
Search
Document Center

Cloud Backup:Back up an ECS instance

Last Updated:Dec 04, 2025

Cloud Backup integrates with the Alibaba Cloud snapshot service to provide an agentless backup method for Elastic Compute Service (ECS) instances and disks. Use Cloud Backup to create crash-consistent backups for all disks of an ECS instance, including the system disk and data disks. Use these backups to restore an entire ECS instance, restore a single ECS disk, or clone the entire instance to create a new ECS instance.

Prerequisites

  • You have activated the Alibaba Cloud Cloud Backup service. Activating Cloud Backup is free. However, Cloud Backup charges software usage fees for ECS instance backups. For more information, see Cloud Backup Pricing.

  • You have enabled the ECS snapshot service.

  • For an instance-level crash-consistent backup, all disks of the ECS instance must be Enhanced SSDs (ESSDs). Otherwise, Cloud Backup creates crash-consistent backups for individual disks.

Background information

  • ECS instance backup uses periodic disk backup policies to protect entire ECS instances or specific disks, providing a low-cost backup solution.

  • You can use an ECS instance backup to restore the original instance, clone it to a new instance, or clone new disks. For more information about the differences, see What are the differences between an instance backup and the snapshot service?.

Usage notes

  • If you have not enabled the snapshot service, Cloud Backup automatically enables it when you use the ECS instance backup feature for the first time. You are charged for using ECS snapshots. Cloud Backup also charges a software usage fee for ECS instance backups. For more information, see Cloud Backup Pricing.

    ECS instance backup is a backup orchestration service from Cloud Backup that is built on the ECS snapshot feature. ECS charges for the snapshot size used by this feature. If you enable Replication to Other Region, ECS also charges for the snapshot size in the destination region and cross-region traffic. For more information, see Snapshot billing.

  • When you create a backup plan or associate a backup policy for the first time, Cloud Backup automatically creates a service-linked role to access the required resources.

  • ECS instance backup does not support backing up or restoring local disks.

    Data stored on local disks is at risk of being lost. Use ECS File Backup to protect files on your local disks or use Database Backup to protect databases deployed on your local disks.

  • When you edit an existing backup plan, Cloud Backup converts the backup plan into a backup policy by default. This operation does not affect the backup parameter settings.

  • You can associate only one backup policy with an ECS instance. You do not need to create a backup vault for ECS instance backups. You can set parameters such as the backup interval and retention period in the backup policy. For more information about the parameters in a backup policy, see Policy center.

  • Do not use the Cloud Backup instance backup service and the disk snapshot service for the same disk at the same time to prevent conflicts in snapshot execution times. Select a backup method as needed and the differences between instance backup and the snapshot service.

Back up an ECS instance

Note

Backup policies are available only in the regions displayed in the console. To view the supported regions, click Policy Center in the navigation pane on the left.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Backup > ECS Instance Backup.

  3. In the top navigation bar, select a region.

  4. In the top-left corner, click Add ECS Backup.

  5. In the Add ECS Backup panel, configure the following parameters.

    1. Select the backup objects and click Next.

      Important
      • Select the ECS instances that you want to back up. By default, all disks are backed up. You can click All Disks to select which disks to back up in the Backup Object dialog box.

        The Protect All Disks switch is enabled by default, which protects all currently attached disks and any new disks that are attached in the future. You can disable the Protect All Disks switch and select specific disks to protect.

      • You can back up multiple ECS instances at a time. A maximum of 99 instances can be backed up in a single operation.

      • Cloud Backup automatically checks whether the selected ECS instances support consistent snapshot groups. If the instances support this feature, consistent snapshot groups are created by default. Otherwise, crash-consistent backups are created for individual disks. For more information about the limits on snapshot consistency, see Notes on creating a consistent snapshot group.

      • The consistent group backup feature doesn't work for ECS instances with disks that support Multi-attach. Instead, a separate crash-consistent backup is created for each disk. If you back up multiple ECS instances attached to the same disk at the same time, the backup may fail.

    2. Configure the backup options and click OK.

      Select Manual Backup or Associate Backup Policy to specify a backup method. The following tables describe the parameters.

      Manual Backup

      This option creates a one-time backup of the ECS instance. Set the retention period and specify whether to enable application-consistent backup and cross-region replication.

      Parameter

      Description

      Retention Period

      Select the retention period for the backup. Set the unit to Day, Week, Month, or Year.

      Replication to Other Region

      Turn on the Replication to Other Region switch to enable cross-region replication and configure the parameters as needed.

      Destination Region: The region to which backups are automatically replicated.

      Remote Retention Period: The retention period for cross-region backups. Set the unit to Day, Week, Month, or Year.

      Replication Encryption Configuration: The following encryption methods are available:

      • Auto Config: Cloud Backup automatically selects an encryption method based on whether the source disk is encrypted.

        If the source disk is not encrypted, Cloud Backup directly replicates the backup to the destination region. If the source disk is encrypted, Cloud Backup uses the default key (Default Service CMK) created by the cloud service to encrypt the backup before replicating it to the destination region.

        Note

        Key Management Service (KMS) provides default encryption for Alibaba Cloud services. View the service key in the KMS console. For more information, see Overview of KMS integration for cloud services.

      • Assign KMS Key: A specified KMS key in the destination region is used for encryption, regardless of whether the source disk is encrypted. The first time you use a specified KMS key for encryption, grant Cloud Backup permissions to access KMS as prompted on the screen.

        Important

        After you use a specified KMS key for encryption, you cannot change the key. Before you use a specified KMS key for encryption, create a KMS key in Alibaba Cloud KMS. For more information, see Create a key.

      After replication to the destination region, if the source ECS instance is infected by a virus or its data is accidentally deleted, use the replicated backup to create a new instance and recover the data.

      Application Consistent Backup

      If you select a single ECS instance that contains only ESSD disks, turn on the Application Consistent Backup switch to enable application-consistent backup.

      Associate Backup Policy

      If you associate a backup policy, Cloud Backup periodically backs up the ECS instance.

      Important

      In the navigation pane on the left, click Policy Center to view the regions that support backup policies. To create a backup policy, see Create a backup policy.

      Parameter

      Description

      Backup Policy

      Select a backup policy from the drop-down list.

      Cloud Backup automatically backs up data sources according to the backup policy you set. A backup policy includes settings such as backup vault encryption, backup interval, retention period, cross-region replication policy, and automatic archiving. This helps you flexibly manage your data source assets.

      If the default backup policy does not meet your needs, click Create Backup Policy or Edit Policy to manage backup policies. For more information about the parameters in a backup policy, see Policy center.

      Replication Encryption Configuration

      This parameter is required only if the Replication to Other Region switch is turned on in the Backup Policy.

      Turn on the Replication Encryption Configuration switch and select an encryption method as needed.

      • Auto Config: Cloud Backup automatically selects an encryption method based on whether the source disk is encrypted.

        If the source disk is not encrypted, Cloud Backup directly replicates the backup to the destination region. If the source disk is encrypted, Cloud Backup uses the default key (Default Service CMK) created by the cloud service to encrypt the backup before replicating it to the destination region.

        Note

        Key Management Service (KMS) provides default encryption for Alibaba Cloud services. You can view the service key in the KMS console. For more information, see Overview of KMS integration for cloud services.

      • Assign KMS Key: A specified KMS key in the destination region is used for encryption, regardless of whether the source disk is encrypted. The first time you use a specified KMS key for encryption, grant Cloud Backup permissions to access KMS as prompted on the screen.

        Important

        After you use a specified KMS key for encryption, you cannot change the key. Before you use a specified KMS key for encryption, create a KMS key in Alibaba Cloud KMS. For more information, see Create a key.

      Application Consistent Backup

      If you select a single ECS instance that contains only ESSD disks, turn on the Application Consistent Backup switch to enable application-consistent backup.

    After the backup plan is created, Cloud Backup performs backups at the specified start time and interval.image

    Backup successful

    When the scheduled backup time is reached, Cloud Backup starts the backup job. The backup is complete when the Backup Status is Completed. View and manage backup points in the backup history. Use backup points for recovery and cloning. If Immutable Backup is enabled in the backup policy that created the backup point, the backup point cannot be deleted before it expires.image

    Backup size description

    • The ECS Instance Backup console displays the backup size, which is the total snapshot size of all disks managed by Cloud Backup. This value may have a latency of up to 24 hours.

      image

    • The backup size is the total size of the snapshot chains generated for the protected ECS instances. To view the snapshot size of a specific ECS instance or disk, go to the snapshot console. For more information, see View the size of a snapshot.

Snapshot retention period

Snapshots created by the ECS instance backup feature are also displayed in the Disk Snapshots list in the ECS console. These snapshots are marked as "Source from Cloud Backup" in the Attribute column. The snapshot's retention period is determined by the Retention Period set in the ECS instance backup policy.

As shown in the following figure, the retention period for the ECS instance backup is 76 days. You can extend the retention period of the ECS instance backup point.

Important
  • Due to technical limitations, if you use the DescribeSnapshots API operation to view the snapshot retention period, the period is displayed as "Permanent". You can ignore this value.

  • If the service is suspended for more than 15 days due to an overdue payment, the system automatically deletes all ECS instance backup points, disk backup points, and their associated snapshots from the account with the overdue payment and from other accounts that it manages. Deleted data cannot be recovered. We recommend that you renew your subscription in a timely manner to avoid the loss of backup assets. If a snapshot has been used to create a disk or an image, the snapshot is not deleted but is disassociated from Cloud Backup.

image

  • Before their retention period expires, snapshots created by Cloud Backup can be managed only using the Cloud Backup service.

    • Before the retention period of an ECS instance backup point expires, you can delete the corresponding snapshots if "Immutable Backup" is not enabled and the "Keep At Least One Backup Version" option is not configured for the associated backup policy. For more information, see How do I delete disk snapshots created by ECS instance backup? or call the DeleteSnapshot - Delete a backup snapshot API operation. This also applies to scenarios that involve only individual disk snapshots.

    • When the retention period of an ECS instance backup point expires, the Cloud Backup service automatically removes the backup point and deletes all its associated snapshots.

      If the snapshot has been used to create a disk or an image, Cloud Backup no longer manages the lifecycle of the snapshot. You can go to the ECS console - Snapshots page or call the DeleteSnapshot - Delete a snapshot API to manually delete the snapshot.

  • Snapshots generated from ECS instance backups can be shared. You must check the retention period of shared snapshots in the ECS console or the Cloud Backup console to prevent them from becoming invalid due to automatic deletion after their retention period expires.

Extend the retention period of a backup point

To retain historical data from an ECS instance backup for a longer period, extend the retention period of the backup point. The snapshots that correspond to the backup point with an extended retention period cannot be deleted before they expire. When the retention period of the ECS instance backup point expires, the system automatically deletes the backup point and its associated snapshots.

Note
  • The retention period of a backup point can only be extended. It cannot be shortened.

  • You can extend the retention period only for ECS instance backup points.

  • You can extend the retention period only by an integer number of days. The maximum extension cannot exceed 999 years. The new retention period is synchronized to the snapshot.

  1. On the Backed-up ECS Instances tab, click the image icon for the target ECS instance.

  2. On the Instance Protection tab, click a historical backup point to set its retention period.

    image

  3. Click Save.

After the configuration is complete, the new expiration time is displayed in the Expires At column, and the retention period is synced to the snapshot.

image

Enable automatic archiving

In the Backup Policy, specify the number of days after which a backup point is archived to the Archive storage tier. Click the backup policy link to edit this archiving period. The number of days can range from 14 to 65,535.

To balance data access frequency, recovery needs, storage costs, and data lifecycle, backup points must be retained in the Standard storage tier for at least 14 days before they can be automatically archived.

Important
  • This setting takes effect only for new ECS instance backup points that are created after the setting is configured or modified. Backup points that were created before the setting was configured do not support archiving.

  • The minimum retention period for data in the Archive storage tier is 60 days. If you manually delete archived data within 60 days, you will be charged for the remaining duration.

  • Data in the Archive storage tier is billed by ECS based on archive snapshot storage. Before an ECS instance backup point is moved to the Archive storage tier, snapshots that have not been successfully archived are billed as standard snapshots. Snapshots that have been successfully archived are billed as archive snapshots. For more information, see Snapshot billing.

image

When automatic archiving begins after the specified number of days, you can click a backup point to view its backup status and backup storage tier.

  • The Backup Status is Archiving if at least one snapshot in the backup point has not been archived.

  • When all snapshots in the backup point are archived, the Backup Status is Completed, and the Storage Tier is Archive Tier.

image

After an ECS instance backup point is archived, on the Disk Snapshots page in the ECS console, the Snapshot Type of the corresponding snapshots is Archive Snapshot and the Attribute is Source from Cloud Backup.

image

View all associated policies

If an ECS instance is associated with two or more backup policies, select the target instance from the Backed-up ECS Instances list and click View All Associated Policies. In the View All Associated Policies panel, perform the following operations on each backup policy:

  • Run Now: Click Run Now in the Actions column to manually trigger the backup job for the policy.

  • Modify Plan: In the Actions column, choose > Modify Plan to modify the backup plan for the policy.

  • Delete Plan: In the Actions column, choose > Delete Plan to remove the backup plan.

  • Suspend Plan: In the Actions column, choose > Suspend Plan to pause the automatic execution of the backup plan.

image

image

Restore an ECS instance

For more information, see Restore an ECS instance.

Restore an ECS disk

For more information, see Restore a disk.

Cross-region replication and recovery

Enable cross-region replication

After you enable Replication to Other Region in a backup policy, backups are automatically replicated to the Destination Region that you specify. You can click the backup policy to edit the destination region, the retention period in that region, and the number of days before backups are archived.

When you set Archive after days, cross-region backup data is automatically moved to the Archive storage tier after the specified number of days. To balance data access frequency, recovery needs, storage costs, and the data lifecycle, backup points must be retained in the Standard storage tier for at least 14 days before they are archived.

Important

The minimum retention period for data in the Archive tier is 60 days. If you manually delete archived data within 60 days, you will be charged for the remaining duration.

image

After replication to the destination region, if the source ECS instance is infected by a virus or its data is accidentally deleted, use the replicated backup to create a new instance and recover the data.

Cross-region replication complete

On the Jobs tab, view the Remote Replication Status. A status of Completed indicates that your backup data has been successfully replicated to another region.

image

Restore an ECS instance (Disaster Recovery)

For example, if the destination region for cross-region replication is Shanghai, and the source ECS instance is infected by a virus or its data is accidentally deleted, perform a disaster recovery in Shanghai to create a new ECS instance and recover the data.

  1. Log on to the Cloud Backup console.

  2. In the navigation pane on the left, choose Backup > ECS Instance Backup.

  3. In the upper-left corner of the top menu bar, select the region. For example, China (Shanghai).

  4. On the Backed-up ECS Instances tab, find the ECS instance that was replicated from another region.

  5. Select a backup point from an appropriate time range and click Disaster Recovery.image

  6. On the Disaster Recovery panel, configure parameters such as the network, security group, and instance type, and click Create to create a pay-as-you-go ECS instance.

    Important

    Creating a new ECS instance incurs fees based on ECS billing rules. For more information, see Pay-as-you-go.

    image

    After the instance is created, you can monitor its recovery progress in the Jobs tab. Once the recovery is complete, you can click the ECS instance link to access the instance.image

Troubleshooting

Errors may occur when you create an ECS instance backup or when a backup plan is running. The following sections provide solutions to common errors.

Error: Retention Period cannot be set to Permanent for ECS instance backup.

A disk can retain a limited number of manual snapshots. If the associated backup policy is set to permanent retention, an error indicating that a snapshot cannot be created may occur later.

Modify the backup policy to specify a fixed retention period.

Error: No destination region is specified.

A destination region for cross-region replication is not specified in the backup policy.

Perform one of the following operations:

  • To stop replicating backups to another region, click Edit Policy and turn off the Replication to Other Region switch.

  • To replicate backups to another region, click Edit Policy, specify a Destination Region, and then save the policy.

  • If the current backup policy does not meet your requirements, click Create Backup Policy to create a new one and then select it.

Error: This ECS instance has been released.

The ECS instance has been released. Cloud Backup no longer runs the backup plan.

Perform one of the following operations:

  • If you want to release the ECS instance, choose > Stop Backup to cancel the backup.

    Important

    After you cancel the backup, the ECS instance is removed from the list of backed-up ECS instances, and all backup plans for this instance are deleted. Existing backups are retained.

  • If the ECS instance was released by mistake, use the ECS instance restore feature of Cloud Backup to check whether the instance can be restored. For more information, see Restore an ECS instance.

Error: The backup plan has been suspended.

The backup plan has been paused. Cloud Backup no longer runs the backup plan.

Perform one of the following operations:

  • If pausing the plan was intentional, no action is needed.

  • If the plan was paused by mistake, resume the backup plan. Choose > Resume Plan to resume the backup plan. After the plan is resumed, backup jobs will run as scheduled.

Error: Failed-Failed to synchronize metadata.

When a backup is replicated to another region, the operation fails because information from the destination region cannot be synchronized.

This issue may be caused by a read failure due to network jitter. Retry the operation or change the destination region and run the backup plan again.

Related operations

ECS instance backup also provides the following features to help you operate and maintain related tasks.

Tab

Description

Related operations

Backed-up ECS Instances

Displays the tasks for your protected ECS instances.

  • Manual Backup: Perform a manual backup. You need to set parameters such as the backup plan.

  • Auto Backup: Perform an automatic backup. You need to set parameters such as the backup plan.

  • Clone Now: Instant clone is supported only when the system disk of the ECS instance is an ESSD. A new pay-as-you-go ECS instance is created based on the configuration and data of the ECS instance at the current point in time. A fast-available snapshot (retained for one day) is also created for all disks on the ECS instance. For information about snapshot fees, see Snapshot billing.

  • Add to Consistency Group: Back up, restore, or clone multiple ECS instances with ESSD system disks as a group.

    Create a new consistency group or add instances to an existing one.

  • Run Now: Run the backup plan immediately.

  • Modify Plan: Re-edit the backup plan if the configured plan does not meet your requirements.

    Important

    When you edit an earlier version of a backup plan, if your region supports backup policies, you must associate a backup policy. Create a backup policy in advance. The disk configuration in the old backup plan is retained, and existing backups are not affected.

  • Delete Plan: Stop backing up according to the backup plan and delete the association between the ECS instance and the plan.

  • Resume Plan: Resume a paused backup plan.

  • Suspend Plan: After a backup plan is paused, backups are no longer performed.

  • Stop Backup: Cancel protection for this ECS instance.

    Important

    After you cancel protection, the ECS instance is removed from the list of backed-up ECS instances, and all backup plans for this instance are deleted. Existing backups are retained. If you want to delete ECS backups, delete them from the corresponding backup points in the instance backup history.

  • Delete Backup Point: Delete backup points within a specified time period in batches. After deletion, you cannot restore from these points.

    Important
    • If the disk snapshot corresponding to a backup point has been used to create a new disk or a custom image, the snapshot is not deleted. Only the instance backup point is deleted.

    • After you manually delete an ECS instance backup point, its corresponding snapshot is automatically removed within 10 minutes.

    • If Immutable Backup is enabled in the backup policy that generated the backup point, the backup point cannot be deleted before it expires.

Jobs

Displays the status of executed tasks.

You can cancel a task that is in progress.

What to do next

References

  • Cloud Backup provides resource plans for various backup scenarios. These plans offer significant price discounts to help you save on costs. For more information, see Purchase a resource plan.

  • Cloud Backup supports backing up one or more disks. You can restore the original disk or create a new disk at any time. For more information, see Create a disk backup.

  • Cloud Backup supports backing up directories and files on ECS instances. You can view and restore data at any time. For more information, see Back up ECS files.

  • Cloud Backup supports backing up directories and files from on-premises servers to the cloud. You can view and restore data at any time. For more information, see Back up on-premises files.

  • To learn more about the product, see What is Cloud Backup?.