Skip to main content

How to create a Database Lab snapshot

GUI​

  1. Go to the Database Lab instance page.
  2. Chose the Snapshots tab. Database Lab instance page / Create snapshot
  3. Click the Create snapshot button. Database Lab instance page / Create snapshot
  4. Choose Clone ID.
  5. Fill Message field.
  6. Click the Create snapshot button.
    Database Lab instance page / Create snapshot
  7. You will be redirected to the Database Lab snapshot page. Database Lab instance page / Create snapshot

CLI​

Before you run any commands, install Database Lab CLI and initialize configuration. For more information, see Install and initialize Database Lab CLI.

Reference​

Create a snapshot​

Create a snapshot using dblab commit command, specify clone ID and message (if needed).

$ dblab commit --clone-id CLONE_ID --message "Snapshot message"

Command dblab snapshot list will show you the list of all snapshots including the one you just created.

$ dblab snapshot list
[
{
"id": "dblab_pool/dataset_1/branch/main/test-clone/r0@20250418112725",
"createdAt": "2025-04-18T11:27:25Z",
"dataStateAt": "2025-04-18T11:27:25Z",
"pool": "dblab_pool/dataset_1",
"numClones": 1,
"clones": [
"test-clone"
],
"branch": "main",
"message": "Snapshot message",
"physicalSize": "0 B",
"logicalSize": "2.7 GiB"
},
...
]