Skip to content

Upload a backup file and restore it

POST
/apps/{slug}/backups/upload-restore
curl --request POST \
--url https://your-server.example/api/apps/example/backups/upload-restore \
--header 'Content-Type: multipart/form-data' \
--cookie session=<session> \
--form file=@file \
--form strategy=example \
--form container=example
slug
required
string

App slug (lowercase, dash-separated).

Media typemultipart/form-data
object
file
required
string format: binary
strategy
required

Strategy id (e.g. postgres, mysql, volume).

string
container

Compose service name (e.g. db), container name, or container ID prefix (12+ characters); only this app’s containers match. May be empty for single-container apps; required when the app has several containers (the error lists the service names).

string

Restore accepted.

Too many restores in progress; try again later.

Media typetext/plain
string