Real-time replica of online data
Snapshots are fully usable copies of file systems. When a problem occurs in a file system for which a snapshot has been created, you can use the snapshot to quickly restore the file system to normal status. We recommend you create a snapshot of the file system before making any major changes to your business, so that data can be quickly restored if the business changes fail.
Persistent backup at critical milestones
Snapshots can be used as persistent backups of business data to keep the business data at milestones.
Quick business deployment
Snapshots allow you to quickly clone multiple file systems for quick service deployment.
How snapshots work
A file system snapshot is a block-level clone or backup. In general, the snapshot size will be larger than the data size displayed in the file system because:
The underlying data block stores the metadata of the file system.
Deleting data modifies the blocks where data is written, which will be backed up to snapshots.
Snapshots provide a convenient and efficient data protection service, which can be used in the following business scenarios:
Daily data backup
You can use snapshots to regularly back up critical business data to avoid data loss caused by incorrect operations, attacks, and viruses.
Quick data recovery
You can create snapshots before performing major operations, such as changing the operating system, upgrading applications, or migrating business data. If any problem occurs, you can use snapshots to restore the business data.
Application of multiple replicas of production data
You can create snapshots for the production data to provide near real-time data for applications such as data mining, report query, and development testing.
Quick environment deployment
You can use an existing snapshot to create one or more file systems to quickly deploy the same business environment in batches, saving the time of repeated configuration.
For details on snapshot quota limits, see Use Limits.
You can manually create a snapshot for a file system at a certain point in time. This snapshot can be used to create more file systems with identical data. For more information, see Creating Snapshots. Scheduled snapshot
If your business data changes frequently, you can use scheduled snapshots to provide continuous data backups. To achieve continuous backups of file system data over a certain time period, you only need to configure a backup policy and associate it with file systems, significantly enhancing data security. For more information, see Scheduled Snapshot.
During snapshot creation, application data saved in the memory may not be persistently stored. As such, snapshots may not capture the latest and all file system data. Refer to Notes to ensure snapshot data consistency.
Case 1: No manual snapshots were created before high-risk operations, resulting in data loss
Customer A has never created a snapshot for its file system. In May 2019, an operator performed a fio test on the file system, resulting in corruption of the file system. The data was permanently damaged.
Analysis: If customer A has created a snapshot for the file system before testing, the snapshot can be used to create a new file system and resume business immediately after the data corruption.
Case 2: No scheduled snapshots were created for important data disks, resulting in data loss
Customer B created snapshots for multiple file systems, except those purchased after January 2019 for cost reasons. In June 2019, a file system without snapshot protection suffered an unrecoverable data loss due to an accidental deletion of system-layer file data.
Analysis: If customer B has created scheduled snapshots for this file system, the data can be recovered to the point in time when the last snapshot was created, thereby minimizing loss. After the incident, customer B created a snapshot for that file system to enhance data protection.
Case 3: Using the scheduled snapshot to roll back data and restore business after an incorrect operation
Customer C created snapshots for all file systems. In May 2019, a startup exception occurred due to an incorrect operation.
Analysis: Customer C promptly restored data using the scheduled snapshot that was created two days ago, and the business remains stable.
These cases all involve data loss due to incorrect operations, but the results are different. By comparison, we can find that:
In situations where a snapshot hasn't been created, data is rarely recoverable when a server or file system exception occurs, resulting in major loss.
In situations where a snapshot has been created, data can be recovered when a server or file system exception occurs, minimizing loss.
We recommend regularly creating snapshots for businesses based on business types, enhancing data security and achieving low-cost, high-efficiency disaster recovery.