API referenceSections

Backups and restore tests

17 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/backup-oauth/callbackThe services' OAuth redirect; the sealed state says who asked. Redirects to the backups page with the outcome.
GET/api/v1/tenants/{tid}/backup-cloud-appsThe provider's OAuth apps at Google Drive, OneDrive and Dropbox; never the secret (ADR 0100). Root tenant only.
PUT/api/v1/tenants/{tid}/backup-cloud-apps/{provider}Set a service's OAuth client; an empty secret keeps the old one, an empty client id removes the service
GET/api/v1/tenants/{tid}/backup-settingsThe account's S3 target, schedule and retention; secrets are never returned
PUT/api/v1/tenants/{tid}/backup-settingsChange the S3 target (an empty secret keeps the old one), schedule and how many to keep
GET/api/v1/tenants/{tid}/backupsThe account's backups, newest first (ADR 0041)
POST/api/v1/tenants/{tid}/backups 202Start a backup of the account on a server, full or databases only
DELETE/api/v1/tenants/{tid}/backups/cloudForget the connected cloud account's tokens; copies stay in the customer's account
POST/api/v1/tenants/{tid}/backups/cloud/connectStart connecting a cloud account; the browser goes to auth_url, the service's consent page (OAuth2 with PKCE)
DELETE/api/v1/tenants/{tid}/backups/{bid}Delete a backup on the server and in S3; one that incremental backups build on needs with_dependents
POST/api/v1/tenants/{tid}/backups/{bid}/restore 202Put parts of a backup back (sites' files, databases, mail); returns the job to follow
GET/api/v1/tenants/{tid}/restore-test-historyThe restore tests of this account's own backups, newest first, for its backups page (ADR 0188)
GET/api/v1/tenants/{tid}/restore-testsRestore test results (ADR 0154); the provider sees every account its policy covers, an account on a plan with restore tests its own tests
POST/api/v1/tenants/{tid}/restore-tests 202Test one account's newest backup now, in a sandbox on a server; never touches what runs
GET/api/v1/tenants/{tid}/restore-tests/policyThe provider's restore test policy (the defaults until saved)
PUT/api/v1/tenants/{tid}/restore-tests/policyChange it
GET/api/v1/tenants/{tid}/restore-tests/{id}One restore test with its checks