Disk snapshots
A snapshot is a snapshot of the state of a network disk, a copy of its file system.
With a snapshot, you can fix the state of the disk without disturbing it so that:
- clone the disk, which can be done create a new disk from a snapshot or restore data to a new disk. You can restore to disk immediately after creating a snapshot;
- clone the cloud server-- provision a new cloud server from the snapshot;
- change disk type — save the disk state with a snapshot and create the same disk but with a different type.
Principle of operation
The size of the snapshot may exceed the actual amount of data and files on the disk. The snapshot size includes file system blocks and "dirty data" that appears when files are overwritten or deleted.
Snapshots can only be created for network drives. A maximum of five snapshots can be created for each disk.
A snapshot is not a backup of a cloud server network disk — it is stored on the same hardware, requires the primary storage to be available for any operation, and is deleted with the disk. If you want to commit the state of the disk and keep it for a long time, instead of a snapshot back up or disk image. If you want to configure automatic backup of a network drive, configure scheduled backups.
You can't download the snapshot, but you can download it disk imaging and image download.
To see alternative ways of backing up cloud servers, see the table below Backup methods.
Cost
Snapshots are paid for by cloud platform payment models.
Paid for each GB of status snapshots AVAILABLE
or RESTORING
. Snapshots in other statuses are not paid.
The cost of a snapshot is equal to the cost of the network disk from which it is created, and depends on the disk type. The storage cost of the created snapshot does not change when the disk size changes.
For example, you have a network disk of type Base HDD of size 5 GB and the snapshot size is 1 GB.
A 5 GB disk costs 0.05 ₽ per hour. You pay the same price for a snapshot as for the original disk size (5 GB) — 0.05 ₽ per hour.
If you increase your disk to 7 GB, for example, the snapshot will continue to be charged as before.
Each disk snapshot is paid for, even if there are multiple snapshots.
For example, you have a 5 GB network disk. A 5 GB disk costs 0.05 ₽ per hour. You have created three snapshots, each costing 0.05 ₽ per hour, regardless of the size of the data on the disk. For three snapshots, you pay 0.15 ₽ per hour.
The actual size of the snapshot can be viewed in the control panel under Cloud platform → Disks → disk page → tab Snapshots. The total volume of snapshots that are paid for can be viewed in the following section Cloud platform → Platform consumption → tab Present value.
The cost per GB of snapshots can be viewed at selectel.ru.
Snapshots created before November 2, 2023 will begin paying on November 2. The size of the snapshot that will be charged is equal to the size of the disk at the time the charge begins.
Create a snapshot
A maximum of five snapshots can be created for each disk. To increase the limit, file a ticket.
Control panel
OpenStack CLI
Snapshot can be created for network disks in statuses AVAILABLE
and IN-USE
. When a snapshot is created, the name is automatically set as snap-датасоздания_времясоздания
for example snap-14.05.21_14.43
- In control panel go to Cloud platform → Disks.
- Open the disk page → tab Snapshots.
- Click Create a snapshot.
-
Create a snapshot:
openstack volume snapshot create --volume <volume> <snapshot_name>
Specify:
<volume>
— ID or disk name. The list can be viewed withopenstack volume list
<snapshot_name>
— the name of the snapshot.
Recover data from a snapshot
You can create a new network disk from a snapshot. The disk will be a copy of the state that was on the original disk when the snapshot was created.
- In control panel go to Cloud platform → Disks.
- Open the disk page → tab Snapshots.
- On the menu. of the snapshot, select Create a disk from a snapshot.
- Optional: replace the boot disk from the cloud server to a restored or connect the recovered disk to the server as an extra.
Snapshot statuses
-
In control panel go to Cloud platform → Disks.
-
Open the disk page → tab Snapshots.
-
Look at the status in the snapshot row → column Status.
Delete the snapshot
You can delete a snapshot by disk removal or separately.
Control panel
OpenStack CLI
- In control panel go to Cloud platform → Disks.
- Open the disk page → tab Snapshots.
- On the menu. of the snapshot, select Delete.
-
Delete the snapshot:
openstack volume snapshot delete <snapshot>
Specify
<snapshot>
— ID or name of the snapshot. The list can be viewed withopenstack volume snapshot list