arcave savepoint list
Prints the committed savepoints of the compose project, in the session the command works in, as a JSON array.
arcave savepoint list [flags]
It reads the store, stops nothing, changes nothing and takes no lock, so it runs while another arcave command holds the project. Only committed savepoints appear: a capture killed before its record was written left data no record names, and nothing lists it or puts it back.
Flags
| Flag | Default | Description |
|---|---|---|
--include-safety-snapshots | false | Also list the safety snapshots a rollback takes of the live state; rolling back to one by id undoes that rollback. |
--sort | desc | Order by age: desc lists the newest first, asc the oldest. Any other value is refused. |
Global flags apply — see the CLI reference.
Order
The array is newest first; --sort asc lists the oldest first. An id is a UUIDv7 — its leading digits are the capture's millisecond — so the order by age is the order by id.
arcave savepoint list | jq -r '.[0].id'
Safety snapshots are hidden
A safety snapshot is an ordinary savepoint carrying the label arcave-safety-snapshot: "true". The label hides it from this listing and from every scanning selector — latest, a name lookup, --retain-recent, --retain-for, --before-date. An explicit id still reaches one, in rollback and in savepoint remove, whether or not this flag was passed.
It is hidden because it is not a state you chose to keep. It is the last copy of that rollback's pre-rollback state, and stays until arcave gc retires it; this flag is how you find its id, to undo the rollback or to remove it. See the safety snapshot.
Output
- Terminal
- JSON
NAME ID CREATED VOLUMES LAYERS STORED NOT COVERED
before-migration 019e843e-1650-7000-8000-000000000000 2026-06-01 19:41 1 2 173 MB 1
[
{
"id": "019e843e-1650-7000-8000-000000000000",
"name": "before-migration",
"description": "before the v2 schema",
"created_at": "2026-06-01T19:41:12.123456789Z",
"stats": [ … ],
"writable_layers": [ … ],
"images": [ … ],
"spec": { "format": "compose-yaml" },
"not_covered": { … }
}
]
On a terminal, one row per savepoint: what it captured, what it added to the store, and how many things it does not cover — not_covered and images not stored, spelled out by savepoint create. In the JSON each element is the whole record, exactly as savepoint create printed it — stats, writable_layers, images, spec and not_covered included. An empty store prints No savepoints. on a terminal, [] in JSON.
With --include-safety-snapshots, a safety snapshot is listed among the others, named on a terminal by the rollback it was taken before and marked (safety); in the JSON it carries its label, an empty name, and taken_before_rollback_to — the savepoint that rollback went to, by id and by the name it had then:
- Terminal
- JSON
NAME ID CREATED VOLUMES LAYERS STORED NOT COVERED
before rollback to before-migration (safety) 019e8491-04c8-7000-8000-000000000000 2026-06-01 21:22 1 2 3.9 MB 1
before-migration 019e843e-1650-7000-8000-000000000000 2026-06-01 19:41 1 2 173 MB 1
[
{
"id": "019e8491-04c8-7000-8000-000000000000",
"name": "",
"description": "",
"labels": { "arcave-safety-snapshot": "true" },
"taken_before_rollback_to": { "id": "019e843e-1650-7000-8000-000000000000", "name": "before-migration" },
"created_at": "2026-06-01T21:22:37.009412Z",
…
},
{
"id": "019e843e-1650-7000-8000-000000000000",
"name": "before-migration",
"description": "before the v2 schema",
"created_at": "2026-06-01T19:41:12.123456789Z",
…
}
]
A safety snapshot has no name: its taken_before_rollback_to names the savepoint that rollback was applying, by id and by the name it had then, so it always says which rollback it was taken before.
Errors
| Condition | What happens |
|---|---|
No .arcave/config.yaml | config is not found: run 'arcave init' if not yet initialized |
| No compose project named | no compose project named: pass -p/--project-name, or set ARCAVE_COMPOSE_PROJECT_NAME |
| The Docker daemon is unreachable | Nothing: listing reads the store alone and reaches no daemon, whatever the cdc transport. |
| A record that will not decode | load savepoint 019e843e-1650-7000-8000-000000000000: parse record: … — a corrupt commit is an error, never a silent skip. |
| No savepoints | No savepoints. on a terminal, [] in JSON; exit code 0. |
Examples
arcave savepoint list
arcave savepoint list | jq -r '.[] | "\(.id) \(.name)"'
arcave savepoint list --include-safety-snapshots \
| jq -r '.[] | select(.labels."arcave-safety-snapshot" == "true") | "\(.id) before rollback to \(.taken_before_rollback_to | if .name != "" then .name else .id end)"'
arcave savepoint list | jq '[.[0] | (.stats // [])[].stored_bytes, (.writable_layers // [])[].stored_bytes, (.images // [])[].stored_bytes] | map(. // 0) | add'
Next step
arcave rollback — return the environment to one of them.