lbcli create snapshot (2.2 and above)
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 DESCRIPTIONlbcli 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). Retention time is encoded as a string with a {value}{unit} format. {value} is a decimal number and {unit} is one of the following: ns, us, ms, s, m, h. Example: 7200s, 1200m, 2h. | 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). | 
Was this page helpful?
