Downloads
Endpoints for hosted downloads: ZIPs of a file, a directory or a database dump from a snapshot, prepared by Backup Chief so they can be downloaded without access to the server. A download copies backup contents out of the team's own storage for a limited time, so only prepare one when it is needed. Restores on the team's own servers with the agent or restic need no download.
List downloads
List the hosted downloads of all the team's backup jobs, newest first.
query Parameters
per_pageNumber of results per page.
pagePage number to return.
statusOnly return downloads that are available (ready and not expired), in_progress (being prepared or deleted) or history (failed, cancelled or expired).
jobOnly return the downloads of this backup job.
List downloads › Responses
Paginated set of Download
List the downloads of a backup job
List the hosted downloads of one backup job, newest first.
path Parameters
jobquery Parameters
per_pageNumber of results per page.
pagePage number to return.
statusOnly return downloads that are available (ready and not expired), in_progress (being prepared or deleted) or history (failed, cancelled or expired).
jobOnly return the downloads of this backup job.
List the downloads of a backup job › Responses
Paginated set of Download
Prepare a download
Prepare a ZIP from a snapshot of an active or paused job: the database dump of a database backup snapshot, or a file or directory of a file backup snapshot given by its absolute path. The path must be inside the job's backed-up path; whether it exists in the snapshot is checked while the download is prepared, and a path that does not exist fails the download with failure_code source_unavailable. Preparing runs in the background: poll the download until it is ready, then create a download URL. Requesting the same content again while a download of it is being prepared or ready returns that download. The team's plan limits the size, the number of downloads per day and the downloads being prepared at once.
path Parameters
jobPrepare a download › Request Body
snapshotFormatted ID of the snapshot to download from, as listed by the job's snapshots.
pathFor a file backup: the absolute path of the file or directory to download, inside the job's backed-up path. Not used for database backups, which download the snapshot's database dump.
path_typeFor a file backup: whether the path is a file or a directory.
repositoryFormatted ID of the repository to read from, the main repository when left out. Use it to download from an extra copy.
Prepare a download › Responses
The download is being prepared, or an earlier download of the same content is returned.
Get a download
Get one hosted download, to follow its preparation until it is ready.
path Parameters
downloadGet a download › Responses
Download
Delete a ready download
Delete the ZIP of a ready download before it expires. Download URLs created for it stop working. The download stays listed in the history.
path Parameters
downloadDelete a ready download › Responses
Download
Cancel a download
Stop preparing a download. A queued download is cancelled right away, one being prepared stops at its next check, and the ZIP of a ready download is deleted.
path Parameters
downloadCancel a download › Responses
Download
Create a download URL
Create a URL that downloads the ZIP of a ready download. Anyone with the URL can download the backup contents, without signing in, until it expires after 60 minutes, so share it only with whoever needs it. A ready download is kept at least until the URL expires.
path Parameters
download