Rolling Back Data from Snapshots

Last Updated At: 2025-10-21 09:10:00

Scenarios

When certain changes cause data errors or data loss, you can roll back the snapshot to the cloud disk from which it was created, thereby restoring the data on the cloud disk to its 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

  1. Log in to the CBS console.

  2. In the left sidebar, choose Snapshot > Snapshot List.

  3. In the Snapshot List page, click Roll Back in the target snapshot row.

    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.

  4. On the rollback data page, confirm rollback information and click OK to start rollback.

Rolling Back Snapshots Using the API

You can use ApplySnapshot API to create a snapshot.