You can also snapshot a volume to act as a backup or template for creating new volumes.
Web Interface
...
Click the drop-down menu on the right-hand side (in
Actions
column) and selectCREATE SNAPSHOT
...
...
Give it a name and press
CREATE SNAPSHOT
...
Command-Line
Find the ID of the volume with:
Code Block | theme | Emacs
---|
$ openstack volume list +--------------------------------------+----------------+-----------+------+-----------------------------------+ | ID | Name | Status | Size | Attached to | +--------------------------------------+----------------+-----------+------+-----------------------------------+ | 03a5bb45-6c28-406d-8cd7-7fac5b63bdeb | cli-new-volume | available | 8 | | +--------------------------------------+----------------+-----------+------+-----------------------------------+ |
Run
Code Block | |
---|---|
Emacs | openstack volume snapshot create --volume <volume-id> <name> |
Code Block | theme | Emacs
---|
$ openstack volume snapshot create --volume 8e20dbdd-16ee-40e9-84ed-971c12104b98 testing-v-snapshot +-------------+--------------------------------------+ | Field | Value | +-------------+--------------------------------------+ | created_at | 2021-12-02T14:34:48.718892 | | description | None | | id | 76d51455-a5cd-478d-a93f-6e49b4108575 | | name | testing-v-snapshot | | properties | | | size | 3 | | status | creating | | updated_at | None | | volume_id | 8e20dbdd-16ee-40e9-84ed-971c12104b98 | +-------------+--------------------------------------+ |
...