Backups & point-in-time recovery
basefyio protects every project database in two layers: a nightly backup you can restore from, and point-in-time recovery (PITR) that rewinds the database to a moment of your choice, so an accidental DELETE at 14:32 can be undone by recovering to 14:31.
How it works
- Nightly backups — taken automatically for every project; nothing to configure. The backup page of a project lists them with their health, including whether the newest one has been proven restorable.
- Base backups and change archive — base backups run nightly and cover the whole database cluster, so they cannot be started per project. Changes are archived continuously between them.
- Retention — the recovery window is shown in the dashboard with its start, the point exact recovery reaches back to, the latest recoverable moment and the retention in days.
Restore a backup
Open the project and choose Backup, pick a backup and restore it. Restoring defaults to a new project, so the original stays untouched; overwriting the existing project asks you to type its name first.
Recover to a point in time
- Open Backup and find the Point-in-time recovery panel.
- Pick the date and time to recover to. The picker includes seconds and the confirmation shows your time zone. A time outside the recovery window is flagged before anything runs.
- Type
RESTOREto confirm, then choose Recover database. - The dialog follows the restore step by step: waiting for a slot, checking backups, downloading, replaying changes, extracting your database, writing it back. It usually takes several minutes. You can close the dialog; the restore keeps running and the panel shows its status, also after a reload.
Restores run in the background, one at a time across the platform, so a restore never slows down other databases. One restore per project can be active at once, and a project can start up to three per hour. The final write into your database is all or nothing: if it fails, or the restore runs past its time limit, it is rolled back and your data stays as it was. A failed restore says why in the dialog and in the project activity log.
Over the API
POST /api/projects/{id}/pitr/restore with { "targetTime": "2026-11-20T14:31:00Z" } answers 202 with a job (jobId, status, phase, message). Poll GET /api/projects/{id}/pitr/restore/{jobId} until status is succeeded or failed; GET /api/projects/{id}/pitr/status returns the newest job. A second restore while one is active answers 409 with the active job id; more than three per hour answers 429. Tokens need backups:write to start a restore and backups:read to read its status.
Exact recovery reaches back to the start of the continuous archive. For an earlier time the database is restored to the nearest snapshot instead, and the panel says so. A new project has no base backup until the first nightly run, so recovery becomes available after that.
Good practice
- Export what matters to you as well: the project Export page produces a copy you hold yourself.
- Try a risky migration on a branch first.
- Recovery rewinds the whole database. Anything written after the chosen moment is not in the result.