Chief Tools Logo
Backup Chief API v1

Endpoints for the restic snapshots of the team's backup jobs. Every backup run makes one snapshot for a file backup or one per database for a database backup. Restore them with the agent or restic, or prepare a hosted download.


List the snapshots of a backup job

GET
https://backup.chief.app/api/v1
/jobs/{job}/snapshots
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the snapshots the job's backups made, newest first. Filter on a run to list the snapshots one backup made, such as the database dumps to download or restore.

List the snapshots of a backup job › path Parameters

job
​string · required

List the snapshots of a backup job › query Parameters

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1
availability
​string | null · enum

Only return snapshots with this availability, available for the snapshots that can still be restored.

Enum values:
available
expired
unknown
run
​string | null

Only return the snapshots of this backup run: its one snapshot for a file backup, or one per database for a database backup.

List the snapshots of a backup job › Responses

Paginated set of Snapshot

​Snapshot[] · required
​object · required
​object · required

Get a snapshot

GET
https://backup.chief.app/api/v1
/snapshots/{snapshot}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Get one snapshot with its copies in extra copy repositories.

Get a snapshot › path Parameters

snapshot
​string · required

Get a snapshot › Responses

Snapshot

​Snapshot · required

Get the restore commands of a snapshot

GET
https://backup.chief.app/api/v1
/snapshots/{snapshot}/restore-commands
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Get the commands that restore a snapshot, or one directory of a file backup snapshot, as the Backup Chief app shows them: directly on the server or as a ZIP with the agent, the import of a database dump, and with restic when the agent is unavailable. Backup Chief does not restore: run the commands on a server. They never include secrets; the restic commands ask for the recovery password from the recovery document.

Get the restore commands of a snapshot › path Parameters

snapshot
​string · required

Get the restore commands of a snapshot › query Parameters

repository
​string | null

Restore from this repository of the job, as GET /jobs/{job}/repositories lists them. Defaults to the main copy.

path
​string | null · maxLength: 4096

Restore only this directory of a file backup snapshot, as an absolute path inside the job's backed-up path. Defaults to the whole snapshot.

Get the restore commands of a snapshot › Responses

RestoreCommands

​RestoreCommands · required

List a directory of a snapshot

GET
https://backup.chief.app/api/v1
/snapshots/{snapshot}/tree
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the files and folders in one directory of a file backup snapshot of an active or paused job, to pick a path to download or restore. Backup Chief reads the directory from the team's storage in the background: a directory read recently is returned right away, otherwise the status is loading and the same request with request set to request_id returns the listing once it is read, usually within seconds. Database backup snapshots have no directories and return 404.

List a directory of a snapshot › path Parameters

snapshot
​string · required

List a directory of a snapshot › query Parameters

path
​string | null · maxLength: 4096

The directory to list, as an absolute path inside the job's backed-up path. Defaults to the backed-up path itself.

repository
​string | null

List the directory in this repository of the job. Defaults to the main copy.

request
​string | null · pattern: ^[0-9a-hjkmnp-tv-z]{…

The request_id of an earlier response with status loading, to poll for its listing instead of reading the directory again.

List a directory of a snapshot › Responses

SnapshotTree

​SnapshotTree · required