- Clone and recover a certain state of the disk.
- Eliminate data loss risks.
- Prevent accidental deletion, corruption and security incidents.
- Make a copy of a disk before risky operations, such as software upgrades, patches or configuration changes, so you can roll back in case of issues.
- Fulfill compliance requirements for immutable system versions, if applicable.
Prerequisites
Make sure you are in a group that has at least theeditor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
How to create a snapshot
To create a snapshot, you don’t need to stop a virtual machine.- Web console
- CLI
-
In the sidebar, go to
Storage → Disks.
- In the list of disks, find the disk that you want to create a snapshot for.
-
In the line of the required disk, click
→ Create snapshot.
- In the window that opens, specify the name and optionally the description of the snapshot. The ID of the selected disk is prefilled in the Source disk field.
- Click Create snapshot.
How to create a disk from a snapshot
After you prepare a snapshot, you can create a disk based on this snapshot. Thus, you restore the needed disk state with data integrity verified. To create a disk from a snapshot:- Web console
- CLI
-
In the sidebar, go to
Storage → Disks → Snapshots.
-
In the line of the required snapshot, click
→ Create disk.
-
On the disk creation page that opens, check the Disk source type and Snapshot fields. They are prefilled:
- Disk source type: Snapshot.
- Snapshot: ID of the selected snapshot.
- Set other needed fields for the disk and click Create disk.
How to update a snapshot
In the web console, you can only change the snapshot name. In the CLI, you can change the snapshot name and description.- Web console
- CLI
- In the sidebar, go to
Storage → Disks → Snapshots.
- In the line of the required snapshot, click
→ Settings.
- On the page of the snapshot settings that opens, update the snapshot name and click Save changes.
How to delete a snapshot
- Web console
- CLI
- In the sidebar, go to
Storage → Disks → Snapshots.
- In the line of the required snapshot, click
→ Delete.
- In the window that opens, confirm the deletion.