Instance snapshots CLI reference¶
See https://docs.openstack.org/nova/2023.2/cli/index.html.
These commands allow you to create, list, show details of, and delete instance snapshots, as well as create new instances from existing snapshots.
Create an instance snapshot¶
<snapshot_name>
: Name of the snapshot.<server_id_or_name>
: ID or name of the instance to snapshot.
List snapshots (images)¶
- This command lists all images, including snapshots (you can identify snapshots by their names or other metadata)
Show snapshot details¶
<snapshot_id_or_name>
: ID or name of the snapshot.
Delete a snapshot¶
Create an instance from a snapshot¶
Bash
openstack server create --image <snapshot_id_or_name> --flavor <flavor_id_or_name> <new_server_name>
<snapshot_id_or_name>
: ID or name of the snapshot to use as the image<flavor_id_or_name>
: ID or name of the flavor for the new instance<new_server_name>
: Name of the new instance