Skip to main content

Run backup drill

POST/api/backup/drill

Proves an archive restores. The drill checks the archive, boots the app from its data on an isolated network and a free port, and asks the app's health endpoint for an answer. Protection: token. Without app, the drill runs for every app in the archive that has a health check. Without archive, it uses the newest archive.

Authorizations

Authorizationstringheaderrequired

The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.

Body

application/json
appstring

The app to drill, such as gitea. Without it, every app in the archive that has a health check is drilled.

Example: gitea
archivestring

The path of the archive. Without it, the newest archive in the backup directory.

Response

200 · application/json

One result when you name an app, or a report with a results array when you do not. A drill that ran and failed is still 200: read passed and error.

objectobject