A snapshot is a copy of the data stored on a cloud disk or on Shared Block Storage (hereinafter referred to as disks) at a specified point in time. A snapshot is commonly used to back up data, recover data, and create custom images.
You can create snapshots in the following scenarios:
Disaster backup: Create a snapshot for a disk and use the snapshot as base data of another disk.
Version rollback: Roll back a disk by using a snapshot if a system error occurs after an upgrade.
Environment duplication: If you want to purchase an instance that has the same environment as an existing instance, create a custom image by using the system disk snapshot of the existing instance, and then create an instance by using the custom image.
Data development: By creating a snapshot of production data, you can provide near-real-time data for data mining, report query, and development, and testing applications.
Data recovery and restoration:
- Use a snapshot to recover and restore the data on your disk even if incorrect data is mistakenly stored in the disk, your ECS instance is mistakenly released, an application error results in a data error, or your disk data is hacked.
- Use a snapshot to regularly back up your critical service data on your disk to eliminate the risk of data loss resulting from incorrect operations, attacks, or virus.
- Create one or more snapshots when you replace your OS, update your applications, or migrate your service data. This way you can use the snapshots to recover your system data if any failure occurs.
Snapshots can be categorized into the following types depending on the method to create them:
- Manual snapshot: a snapshot that you manually create for a disk.
- Automatic snapshot: a snapshot that is created automatically according to an automatic snapshot policy. You can create an automatic snapshot policy and apply it to a disk. For more information, see Apply automatic snapshot policies to disks. Then, ECS will create snapshots automatically for the disk at specified points in time.
Snapshots can also be categorized into the following types depending on the portion of data contained within them:
- Full snapshot: the first snapshot of a disk that contains the complete data.
- Incremental snapshot: a subsequent snapshot after the first snapshot of a disk. An incremental snapshot contains the copied portion of changed data relative to the preceding snapshot. For more information, see Snapshot concepts.
The snapshot fee is calculated based on the size of the storage space used by a snapshot. After you create a snapshot for a disk, you can view the snapshot size of the disk by using the Snapshot Chains function in the ECS console. For more information, see View the snapshot size. You can also view the total snapshot size of a region by using the Snapshot Size function in the ECS console.
For more information about the billing methods and unit price of snapshot storage space, see Billing of snapshots.
The Alibaba Cloud snapshot service provides higher snapshot quotas and more flexible snapshot policies. The following table describes the user benefits and typical scenarios of the service.
|Item||Description||User benefit||Typical scenario|
|Snapshot quota||Each disk has a quota of 64 snapshots.||Longer protection cycle with a finer granularity.||
|Automatic snapshot policy||You can customize when a snapshot is created, how often a snapshot is created in a week, and how long a snapshot is stored. You can also query the number and other details relating to the disks associated with automatic snapshot policies.||More flexible protection policies||
The following table describes the advantages of the Alibaba Cloud ECS snapshot service over traditional snapshot services.
|Metric||ECS snapshot service||Traditional snapshot service|
|Capacity||Unlimited capacity, allowing you to protect all of your service data.||Limited capacity. Only the initially purchased storage capacity is available and only critical service data can be protected.|
|Scalability||Support for Auto Scaling. You can quickly scale in or scale out the number of storage devices in one click.||Lower scalability. Storage scaling is limited by the storage performance, available capacity, and vendor support.|
|Total Cost of Ownership (TCO)||Charged based on the size of the storage space used by a snapshot.||Incurs charges. You need to spend a large upfront investment and pay for software licenses, reserved storage space, upgrade, and maintenance.|
|Security||Encryption available. You can set ECS disk encryption whenever necessary to encrypt all of your disk snapshots. However, a non-encrypted snapshot cannot be converted to an encrypted snapshot. Similarly, an encrypted snapshot cannot be converted to a non-encrypted snapshot. For more information, see ECS disk encryption.||Encryption attributes and policies are dependent on the underlying storage logic. Therefore, if the storage architecture has a security design defect, any created snapshots may not be secure as a result.|
|Impact on performance||Redirect-On-Write (ROW)
||Copy-On-Write (COW), or other techniques such as ROW. COW has impact on the data write capability of the target system.|