dbaas-pg
snapshot
CLI reference for snapshot (dbaas-pg).
gi dbaas-pg snapshot
| Command | Description |
|---|
gi dbaas-pg snapshot list | List snapshots. |
gi dbaas-pg snapshot create | Create a new snapshot. |
gi dbaas-pg snapshot update <id> | Update a snapshot. |
gi dbaas-pg snapshot delete <id> | Delete a snapshot. |
| Flag | Alias | Description |
|---|
--filter | -f | Filter assets (e.g. attributes.name=my-asset) |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file describing the asset |
| Flag | Alias | Description |
|---|
--file | — | Path to a YAML or JSON file with updated attributes |
# List all
gi dbaas-pg snapshot list
# Filter by attribute
gi dbaas-pg snapshot list -f attributes.cluster=my-value
# Create from file
gi dbaas-pg snapshot create --file asset.yaml
# Update
gi dbaas-pg snapshot update <id> --file asset.yaml
# Delete
gi dbaas-pg snapshot delete <id>