Snapshots
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
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.
path Parameters
jobquery Parameters
per_pageNumber of results per page.
pagePage number to return.
availabilityOnly return snapshots with this availability, available for the snapshots that can still be restored.
runOnly 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
Get a snapshot
Get one snapshot with its copies in extra copy repositories.
path Parameters
snapshotGet a snapshot › Responses
Snapshot
Get the restore commands of a snapshot
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.
path Parameters
snapshotquery Parameters
repositoryRestore from this repository of the job, as GET /jobs/{job}/repositories lists them. Defaults to the main copy.
pathRestore 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
List a directory of a snapshot
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.
path Parameters
snapshotquery Parameters
pathThe directory to list, as an absolute path inside the job's backed-up path. Defaults to the backed-up path itself.
repositoryList the directory in this repository of the job. Defaults to the main copy.
request^[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