Backups API
A backup is a zip of the app's pb_data, kept in pb_data/backups or in S3 (Settings → Backups). All endpoints are
for superusers. PocketOne also records every change for point-in-time restore, which
these full backups sit beside.
List backups
GET /api/backups
[{ "key": "pb_backup_20261123030000.zip", "size": 1048576, "modified": "2026-11-23 03:00:01.000Z" }]
Make a backup
POST /api/backups with an optional {"name": "before-migration.zip"} (default: a timestamped name). Answers 204
when it's done, which takes a while for a big app. One backup or restore runs at a time.
Download a backup
GET /api/backups/{key}?token=...
Takes a superuser's file token in the URL, from POST /api/files/token, so a
browser can download it directly.
Upload a backup
POST /api/backups/upload, multipart/form-data with the zip in file. Answers 204.
Delete a backup
DELETE /api/backups/{key} (204).
Restore a backup
POST /api/backups/{key}/restore
Replaces pb_data with the backup and restarts the app (answers 204 before the restart). Everything since the backup
is gone, so make a backup first.
Next
- Backups and restore: point-in-time restore, and undoing a restore.
- Settings API: the backup schedule and S3.
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.