Backups and restore tests
17 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/backup-oauth/callback | The services' OAuth redirect; the sealed state says who asked. Redirects to the backups page with the outcome. |
| GET | /api/v1/tenants/{tid}/backup-cloud-apps | The 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-settings | The account's S3 target, schedule and retention; secrets are never returned |
| PUT | /api/v1/tenants/{tid}/backup-settings | Change the S3 target (an empty secret keeps the old one), schedule and how many to keep |
| GET | /api/v1/tenants/{tid}/backups | The account's backups, newest first (ADR 0041) |
| POST | /api/v1/tenants/{tid}/backups 202 | Start a backup of the account on a server, full or databases only |
| DELETE | /api/v1/tenants/{tid}/backups/cloud | Forget the connected cloud account's tokens; copies stay in the customer's account |
| POST | /api/v1/tenants/{tid}/backups/cloud/connect | Start 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 202 | Put parts of a backup back (sites' files, databases, mail); returns the job to follow |
| GET | /api/v1/tenants/{tid}/restore-test-history | The restore tests of this account's own backups, newest first, for its backups page (ADR 0188) |
| GET | /api/v1/tenants/{tid}/restore-tests | Restore 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 202 | Test one account's newest backup now, in a sandbox on a server; never touches what runs |
| GET | /api/v1/tenants/{tid}/restore-tests/policy | The provider's restore test policy (the defaults until saved) |
| PUT | /api/v1/tenants/{tid}/restore-tests/policy | Change it |
| GET | /api/v1/tenants/{tid}/restore-tests/{id} | One restore test with its checks |