Skip to content
Projects

Backups

Point-in-time snapshots of a project database via D1 Time Travel — automatic and manual, with one-click restore.

Backups are project-scoped snapshots of the instance database. On D1 they’re backed by Time Travel, so a snapshot is a bookmark you can restore to without copying data around.

  • auto — created on a schedule by the platform; old ones are garbage-collected past their retention window.
  • manual — taken on demand (e.g. before a risky migration). Created by an admin.

From the project’s Backups tab, or via the API:

Terminal window
curl -X POST https://cloud.backlex.com/api/org/<org>/projects/<project>/backups \
-H "Authorization: Bearer pak_..." \
-H "Content-Type: application/json" \
-d '{"kind":"manual"}'

Restoring rolls the project database to the snapshot. It’s a destructive operation on the live data — take a fresh manual backup first if you might want to come back.

Terminal window
curl -X POST \
https://cloud.backlex.com/api/org/<org>/projects/<project>/backups/<id>/restore \
-H "Authorization: Bearer pak_..."

Creating and restoring backups requires the admin role and is written to the audit log.