The Alibaba Cloud snapshot service is an agentless backup service that allows you to create crash-consistent snapshots of system or data disks. You can use snapshots to back up data, restore Elastic Compute Service (ECS) instances that were accidentally released, and create custom images. You can create snapshots of disks to improve fault tolerance before you roll back a disk, modify key system files, or change the operating system of an instance.
Prerequisites
- If the disk is in the In Use state, make sure that the ECS instance to which the disk is attached is in the Running or Stopped state.
- If the disk is in the Unattached state, make sure that the disk was at some point attached to an ECS instance. Snapshots cannot be created for disks that have never been attached to ECS instances.
Background information
It can take several minutes to create a snapshot. The amount of time required to create a snapshot of a disk depends on the amount of data written to the disk. The first snapshot of each disk is a full snapshot. Subsequent snapshots of the disk are incremental snapshots. It takes longer to create a full snapshot than an incremental snapshot. The amount of time required to create an incremental snapshot varies based on the amount of data changed since the previous snapshot. The more data that has changed, the longer it takes.
- Do not perform operations that change the state of the instance, such as stopping or restarting the instance.
- You are charged for snapshots. For more information, see Snapshots.
- We recommend that you create snapshots during off-peak hours because snapshot creation degrades the I/O performance of disks by up to 10% and slows down data reads and writes.
- If operations are performed on the disk and generate incremental data while a snapshot is being created, the incremental data is not included in the snapshot.
- If you create an extended volume from a single multi-partition disk, the snapshot that you created can be used to roll back the disk.
- When a disk is used to create a dynamic extended volume or a RAID array, we recommend that you create a snapshot-consistent group and enable the application-consistent snapshot feature. For more information, see Create a snapshot-consistent group and Create application-consistent snapshots in the ECS console.
- Your created snapshots are stored indefinitely until you choose to delete them. We recommend that you delete unneeded snapshots on a regular basis to prevent excess fees caused by snapshot storage.
This topic describes how to create a snapshot of a single disk. If you want to simultaneously create snapshots of multiple disks on one or more instances, use the snapshot-consistent group feature. For more information, see Create a snapshot-consistent group. When a business system spans multiple disks, you can create a snapshot-consistent group to ensure a consistent write order and crash consistency of business system data.
Create a snapshot in the ECS console
You can go to the Instances page in the ECS console and perform the following operations to create a snapshot of a disk:
You can also create a snapshot of a disk on the Disks page in the ECS console. To go to the Disks page, choose
in the left-side navigation pane.