All Products
Search
Document Center

Cloud Backup:Back up ECS instances

Last Updated:Mar 04, 2024

Cloud Backup is integrated with the Alibaba Cloud snapshot service to provide agentless backup for Elastic Compute Service (ECS) instances and disks. Cloud Backup can create crash-consistent snapshots for all disks, including system disks and data disks. You can use the snapshots to back up or restore an ECS instance or disk. You can also clone an ECS instance or disk.

Prerequisites

  • Cloud Backup is activated. You are not charged for activating Cloud Backup. You are charged for client fees when you use Cloud Backup to back up ECS instances. For more information, see Cloud Backup Pricing.

  • All disks attached to your ECS instances are enhanced SSDs (ESSDs). This ensures crash consistency of the ECS instances. If some disks are not ESSDs, Cloud Backup enables the crash consistency feature only for specific disks.

Background information

  • The ECS instance protection feature allows you to protect ECS instances or specified disks by using a periodic disk backup policy. This ensures low-cost protection.

  • You are charged for the usage of ECS snapshots. You are charged for client fees when you use Cloud Backup to back up ECS instances. For more information, see Cloud Backup Pricing.

    ECS instance backup is a backup orchestration service that is provided by Cloud Backup based on the ECS snapshot capability. The fees for the storage usage of ECS snapshots that are used by this feature are included into the snapshot service bill. If you turn on Replication to Other Region, the fees for the storage usage of ECS snapshots that are replicated to the destination region and the fees for cross-region traffic are also included into the snapshot service bill. For more information, see Snapshots.

  • After an ECS instance is backed up, you can restore the ECS instance, clone it into a new ECS instance, or clone a new cloud disk. For more information, see What are the differences between ECS instance backup and the snapshot service?

Precautions

  • You cannot use the ECS instance backup feature to back up or restore local disks. For more information, see Local disks.

    If you use local disks to store data, your data may be lost. We recommend that you use the ECS file backup feature to protect your files in local disks and use the database backup feature to protect your databases that are deployed in local disks. For more information, see Back up files from an ECS instance and Database backup.

  • If backup policies are supported in the region where you edit a backup plan, Cloud Backup automatically converts your backup plan to a backup policy. The parameter settings of your backup plan remain unchanged.

Procedure

Note

You can create backup policies only in some regions. To view the regions that support backup policies, click Policy Center in the left-side navigation pane of the Cloud Backup console.

  1. Log on to the Cloud Backup console.

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

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

  4. In the upper-right corner of the page, click Add ECS Backup.

  5. In the Add ECS Backup panel, configure the backup objects and backup settings.

    1. Specify the backup objects and click Next.

      Important
      • You must select the ECS instances and disks that you want to back up. Protect All Disks is turned on by default. If you want to protect all disks of an ECS instance, turn on Protect All Disks. In this case, the disks that are later attached to the ECS instance are also protected. If you want to protect only specific disks, turn off Protect All Disks.

      • You can associate up to 99 ECS instances with a backup policy.

      • Cloud Backup automatically checks whether the selected ECS instances support snapshot-consistent groups. Cloud Backup automatically creates a snapshot-consistent group for the ECS instances that support snapshot-consistent groups. If an ECS instance does not support snapshot-consistent groups, Cloud Backup ensures only the crash consistency of disks. For more information, see Create a snapshot-consistent group.

    2. Configure the backup settings and click OK.

      You can select Manual Backup or Auto Backup. The following list describes the parameters.

      • Manual Backup

        • Only one backup file is created for the selected ECS instances at the current point in time.

        • You must specify the retention period of the backup data, whether to enable application-consistent backup, and whether to enable cross-region replication.

          Parameter

          Description

          Retention Period

          The retention period of the backup data. Unit: days, weeks, months, or years.

          Replication Encryption Configuration

          • 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 backups to the specified destination region.

            • If the source disk is encrypted, Cloud Backup uses the default service CMK created by KMS to encrypt the backups, and then replicates the backups to the specified destination region.

              Note

              Key Management Service provides default data encryption capabilities for other Alibaba Cloud services. You can view service keys in the Key Management Service console. For more information, see Overview of integration with KMS.

          • Assign KMS Key: Data is encrypted by using the KMS key of the specified destination region, regardless of whether the source disk is encrypted.

            Important
            • If you enable KMS-based encryption, you cannot modify a KMS key.

            • Before you can use a KMS key to encrypt data, you must create the key in the Key Management Service console. For more information, see Create a CMK.

          Application Consistent Backup

          If you select a single ECS instance, you can turn on Application Consistent Backup to enable the application-consistent backup feature.

          For more information, see Enable the application-consistent backup feature.

          Replication to Other Region

          Turn on Replication to Other Region to enable the cross-region replication feature.

          Backups are automatically replicated to the Destination Region.

          If an ECS instance is infected with viruses or data is lost due to accidental deletion, you can use the backups replicated to the destination region to create another ECS instance to restore data.

      • Auto Backup

        Important

        If you select a region that supports backup policies, associate a backup policy with the ECS instances that you want to back up. Cloud Backup periodically backs up the ECS instances.

        To view the regions that support backup policies, click Policy Center in the left-side navigation pane of the Cloud Backup console. For more information about how to create a backup policy, see Create a backup policy.

        If you select a region that does not support backup policies, configure the following parameters to create a backup plan.

        Parameter

        Description

        Backup Policy

        Select a proper backup policy from the drop-down list.

        Cloud Backup automatically backs up data sources based on the backup policy that you configure. Backup policies help you flexibly manage data sources. A backup policy includes the following settings: backup vault encryption method, backup interval, retention period, cross-region replication policy, and automatic archiving of backups.

        If the default backup policy does not meet your requirements, you can click Create Policy or Edit Policy to create or modify a backup policy.

        For more information about the parameters in a backup policy, see Manage backup policies.

        Replication Encryption Configuration

        This parameter is required only if you turn on Replication to Other Region in Backup Policy.

        • 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 backups to the specified destination region.

          • If the source disk is encrypted, Cloud Backup uses the default service CMK created by KMS to encrypt the backups, and then replicates the backups to the specified destination region.

            Note

            Key Management Service provides default data encryption capabilities for other Alibaba Cloud services. You can view service keys in the Key Management Service console. For more information, see Overview of integration with KMS.

        • Assign KMS Key: Data is encrypted by using the KMS key of the specified destination region, regardless of whether the source disk is encrypted.

          Important
          • If you enable KMS-based encryption, you cannot modify a KMS key.

          • Before you can use a KMS key to encrypt data, you must create the key in the Key Management Service console. For more information, see Create a CMK.

        Application Consistent Backup

        If you select a single ECS instance, you can turn on Application Consistent Backup to enable the application-consistent backup feature.

        For more information, see Enable the application-consistent backup feature.

    After you create the backup policy, Cloud Backup runs the first backup job at the start time that you specified and runs the subsequent backup jobs based on the interval that you specified.整机备份

    Backup is successful

    When the backup execution time is reached, Cloud Backup runs the backup job. If Backup Status is Successful, the backup is complete. You can view the backup points in the backup history.image.png

Troubleshooting

When you create a backup plan to back up ECS instances or when you execute the backup plan, exceptions may occur. You can troubleshoot the exceptions based on the following instructions.

Error message: The policy contains permanent retention rules and cannot be applied to ECS instance backup.

The number of manual snapshots that can be retained on a disk is limited. If permanent retention is enabled in the associated backup policy, an error may occur when you create a snapshot.

We recommend that you change the retention period to the specified duration in the backup policy.

Error message: No destination region is specified.

The backup policy does not specify the destination region for remote replication.

We recommend that you perform the following operations:

  • If you do not need to replicate backups to a destination region, click Edit Policy and turn off Replication to Other Region.

  • If you need to replicate backups to a destination region, click Edit Policy, specify Destination Region, and then save the policy.

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

Error message: This ECS instance has been released.

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

We recommend that you perform the following operations:

  • If the ECS instance is released as expected, choose More > Stop Backup to cancel the backup.

    Important

    After the backup is canceled, the ECS instance is removed from the Backed-up ECS Instances tab and all backup plans of the ECS instance are deleted. The generated ECS instance backups are retained.

  • If the ECS instance is released unexpectedly, we recommend that you check whether the ECS instance can be restored by using the ECS instance backup feature of Cloud Backup. For more information, see Restore an ECS instance.

Error message: The backup plan has been suspended.

The backup plan is suspended. Cloud Backup no longer runs the backup plan.

We recommend that you perform the following operations:

  • If the backup plan is suspended as expected, no additional operation is required.

  • If the backup plan is suspended unexpectedly, we recommend that you resume the backup plan by performing the following operation: Choose More > Resume Plan. After the backup plan is resumed, Cloud Backup runs backup jobs based on the backup plan.

Error message: Failed-Failed to synchronize metadata.

When backups are replicated to a specified destination region, the information about the destination region cannot be synchronized, resulting in replication failure.

The information about the destination region may fail to be read due to network jitter. We recommend that you retry or change the destination region and then execute the backup plan again.

Related operations

The following table describes the tabs that are provided by the ECS instance backup feature. You can efficiently manage backup jobs on these tabs.

Tab

Description

Operation

Backed-up ECS Instances

Displays the ECS instances that are protected by Cloud Backup.

  • Manual Backup: To perform manual backup, you must configure a backup plan.

  • Auto Backup: To perform automatic backup, you must configure a backup plan.

  • Clone Now: You can clone an ECS instance only if the system disk of the ECS instance is an ESSD. A pay-as-you-go ECS instance is created based on the configurations and data of the ECS instance at the current point in time. Snapshots are created for all disks on the ECS instance and retained for one day. For more information about the billing of snapshots, see Snapshots.

  • Add to Consistency Group: You can add multiple ECS instances whose system disks are ESSDs to a consistency group. Then, you can back up, restore, or clone the ECS instances by group.

    You can create a consistency group or specify an existing consistency group.

  • Run Now: You can immediately execute a backup plan.

  • Modify Plan: If a backup plan no longer meets your business requirements, you can modify the backup plan.

    Important

    If backup policies are supported in the region where you modify a backup plan, you must associate a backup policy with the data sources. We recommend that you create a backup policy before you modify a backup plan. The disk configuration in a historical backup plan is retained. Backups that have been generated are not affected.

  • Delete Plan: If you no longer need to back up data based on a backup plan, you can delete the association between the ECS instance and the backup plan.

  • Resume Plan: You can resume a suspended backup plan.

  • Suspend Plan: If you suspend a backup plan, backup protection is no longer performed.

  • Stop Backup: You can stop protection for an ECS instance.

    Important

    If you stop protection for an ECS instance, the ECS instance is removed from the Backed-up ECS Instances tab and all backup plans of the ECS instance are deleted. The generated ECS instance backups are retained. If you want to delete a backup file of an ECS instance, find the backup point of the backup file in the backup history and then click Delete.

  • Delete Snapshot: You can delete backup points that are created within a specified period of time. You cannot restore data from deleted backup points.

    Important

    If the disk snapshot corresponding to a backup point has been used to create a disk or a custom image, the snapshot is not deleted and only the backup point for the ECS instance is deleted.

Job List

Displays the status of each executed job.

You can cancel the jobs that are being executed.

What to do next

References

  • Cloud Backup provides resource plans for various backup scenarios so that you can enjoy higher discounts and minimize your costs. For more information, see Purchase resource plans.

  • Cloud Backup allows you to back up one or more disks. You can restore the original disks or create new disks at any time. For more information, see Create disk backups.

  • Cloud Backup allows you to back up directories and files on ECS instances. You can view and restore data at any time. For more information, see Back up files from an ECS instance.

  • Cloud Backup allows you to migrate 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.

  • For more information about Cloud Backup, see What is Cloud Backup?