lbcli create snapshot (2.2 and above)

AI Tools

Creates a new snapshot.

Synopsis

Creates a new snapshot with specified properties.

lbcli create snapshot [flags]

Examples:

# Create a Snapshot with name "snapshot_0" from volume with UUID XXX and description DESCRIPTION lbcli create snapshot --name=snapshot_0 --source-volume-uuid=XXX --description=DESCRIPTION --project-name=default

Flag

Short

Type

Default

Description

Version

--description


string


Snapshot description (optional)


--help

-h

bool


Help for snapshot.


--name


string


Snapshot name (required).


--project-name


string


The project associated with the snapshot (required).


--retention-time


string

0

Retention time to keep the snapshot (optional). Duration range: from 1m to 100y using s/m/h units (e.g., 3600s, 24h).

2.3.16 and above

--source-volume-name


string


Volume name from which to take the snapshot (required if source-volume-UUID was not provided).


--source-volume-UUID


string


Volume UUID from which to take the snapshot (required if source-volume-name was not provided).