Scenarios
When certain changes cause data errors or data loss, you can roll back the snapshot to the cloud disk that the snapshot group was created from, thereby restoring the data on the cloud disk to the state when the snapshot was created.
The snapshot data can only be rolled back to the source cloud disk, not to other cloud disks.
Scenes where rollback can be performed:
- If the source cloud disk is in the state of To be mounted (that is, not attached to a CVM), you can directly perform the rollback operation.
- If the source cloud disk is already attached to a CVM, the corresponding CVM needs to be shut down to perform the rolling back operation.
Operation Steps
Rolling Back Snapshots Using the Console
Log in to the CBS console.
In the left sidebar, choose Snapshot > Snapshot List.
On the Snapshot Group tab, click Roll Back in the row of the target snapshot.
Note:
The data on the source cloud disk will be rolled back to the state when the snapshot was created. Data after this time will be cleared, so proceed with caution.
On the rollback data page, confirm rollback information and click OK to start rollback.
Rolling Back Snapshots Using the API
You can use the ApplySnapshotGroup API to roll back snapshot groups.