Creating a Snapshot of a Volume Using Cockpit
Click Storage > Snapshots.
You can also select a volume in the Storage > Volumes tab, then click Snapshot .
- Click Create
The CREATE SNAPSHOT dialog box appears.
- In the Name field, type a name for the snapshot.
This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.
From the Volume list, select the volume of which you want to create a volume.
If data is being written on the volume at the time you create the snapshot, this snapshot may be incomplete.
- (optional) In the Description field, type a description of the snapshot.
- Click Create to validate.
A snapshot of the volume is created and appears on the Snapshots page.
Creating a Snapshot of a Volume Using AWS CLI
To create a snapshot of a specified volume, use create-snapshot command following this syntax:
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
volume-id: The ID of the volume you want to create a snapshot of.
description: A description of the snapshot.
endpoint: The endpoint corresponding to the Region you want to send the request to.
The create-snapshot command returns the following elements:
Description: A description of the snapshot, if provided in the request.
OwnerId: The account ID of the owner of the snapshot.
Progress: The progress of the snapshot (a percentage).
SnapshotId: The ID of the newly created snapshot.
State: The state of the snapshot (
StartTime: The time at which the snapshot was initiated.
VolumeId: The ID of the volume used to create the snapshot.
VolumeSize: The size of the volume, in gibibytes (GiB).
A snapshot of the specified volume is created.