Skip to Content
ConceptsBackups

Backups

Endee supports creating and restoring collection backups. Backups are stored per-user and can be used to migrate collections, recover from data loss, or snapshot a known-good state.


API Endpoints

MethodEndpointDescription
POST/api/v1/index/{name}/backupCreate async backup
GET/api/v1/backupsList all backups
GET/api/v1/backups/activeCheck active backup for current user
GET/api/v1/backups/{name}/infoGet backup metadata
POST/api/v1/backups/{name}/restoreRestore backup to a new collection
DELETE/api/v1/backups/{name}Delete a backup

Create a Backup

Backups are created asynchronously. The API returns immediately with 202 and a backup_name; the backup runs in a background thread.

POST /api/v1/index/{name}/backup

While a backup is in progress, write operations are paused; only read/search operations remain active. Once the backup completes, writes resume automatically.

Only one active backup per user is allowed at a time.


Restore a Backup

Restoring extracts the backup and registers the collection under a new name.

POST /api/v1/backups/{name}/restore

Requirements:

  • The backup must exist
  • The target collection name must not already exist

Restore always creates a new collection. It will not overwrite an existing collection.


Get Backup Info

Returns metadata for a specific backup:

GET /api/v1/backups/{name}/info

Response includes: original_index, timestamp, size_mb, and collection parameters.


List and Delete Backups

GET /api/v1/backups # list all backups for current user DELETE /api/v1/backups/{name} # delete a specific backup

If the server crashes or restarts during a backup, the backup will not complete automatically. You will need to start a new backup once the server re-starts.