Schemas
BackupJob
idFormatted backup job ID.
nametypestatuspending while storage is set up and until the recovery document is saved in the Backup Chief app, active while it runs on schedule, paused, or deleting while its backups are deleted.
status_labelThe status as the Backup Chief app shows it, naming the next step while the job is pending.
provisioning_stateThe step the storage setup reached.
The storage destination that keeps the main copy.
source_summaryOne line describing what the job backs up.
What the job backs up: FileBackupSource for file, MySqlBackupSource for mysql, PostgreSqlBackupSource for postgresql. Passwords are never returned.
How many backups are kept.
retention_labelThe keep policy in words.
When the agent checks the repository, as cron expressions in UTC.
repository_bytesBytes the main repository last reported, null until it was measured.
last_run_atlast_full_success_atpaused_atcreated_atBackupJobIntegrityDataMode
How the data integrity checks of a backup job are scheduled: auto spreads the checks over the retention period.
BackupRepository
idFormatted repository ID.
rolemain for the repository backups are written to, extra_copy for a copy of it at another storage destination.
storage_destinationThe storage destination that keeps the repository, null when it was deleted.
statusprovisioning_statehealthyWhether the repository is active.
repository_bytesBytes the repository last reported, null until it was measured.
initial_sync_completed_atlast_copy_atWhen backups were last copied to an extra copy.
last_check_atdetached_atBackupRepositoryRole
The role of a repository of a backup job: the main repository backups are written to, or an extra copy.
BackupRun
idFormatted run ID.
kindbackup for a backup, or the maintenance operation the run performed.
triggermanual for a run someone started, scheduled for a run the schedule started.
statusThe state of the run as the agent reported it.
status_labelThe outcome as the Backup Chief app shows it, which also accounts for extra copies that failed.
summaryShort summary the agent reported.
source_filesFiles the backup read, null for maintenance runs and until reported.
source_bytesBytes the backup read, null for maintenance runs and until reported.
stored_bytesNew bytes the backup added to the repository after deduplication, null for maintenance runs and until reported.
statisticsThe reported figures as the Backup Chief app shows them.
repository_bytesSize of the main repository after the run, null until reported.
repository_bytes_deltaHow much the main repository grew or shrank, null until reported.
snapshots_countSnapshots the backup made: one for a file backup, one per database for a database backup.
available_snapshots_countSnapshots that can still be restored.
restorableWhether the run is a recovery point whose snapshots can all still be restored.
kept_forever_atWhen the recovery point was set to be kept forever, null when the job's retention policy applies.
has_logWhether a complete log of the run can be read from the log endpoint.
The result per repository: the main repository and each extra copy the run wrote to or copied to.
scheduled_forThe minute a scheduled run was due, null for manual runs.
started_atfinished_atcreated_atCreateDownloadRequest
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.
DatabaseSelectionMode
Which databases a database backup job backs up: every database the user can read, the listed databases, or all but the listed databases.
DatabaseTableSelectionMode
Which tables a database backup job backs up: all tables, only the listed tables, or all but the listed tables.
Download
idFormatted download ID.
snapshot_idFormatted ID of the snapshot the download is made from.
run_idFormatted ID of the backup run that made the snapshot.
repositoryThe repository the download is read from, null for downloads that predate extra copies.
kindfile or directory for a file backup, database for a database dump.
nameFile name of the ZIP.
statusqueued, then inspecting while the size is checked and preparing while the ZIP is made, ready to download until it expires, or failed, cancelled or expired. expiring while a ready ZIP is deleted.
status_labelThe status as the Backup Chief app shows it.
downloadableWhether the ZIP can be downloaded now: create a download URL for it.
source_bytesBytes of backup data the download contains, null until checked.
archive_bytesSize of the ZIP, null until it is ready.
uploaded_bytesBytes of the ZIP uploaded so far while it is prepared.
sha256SHA-256 checksum of the ZIP, null until it is ready.
failure_messageThe failure explained, null unless it failed.
download_countHow often the ZIP was downloaded.
requested_byName of the team member who requested the download, null when a team access token requested it or the member left the team.
created_atstarted_atready_atexpires_atWhen the ZIP is deleted, or was deleted.
last_downloaded_atFileBackupSource
pathsDirectories that are backed up.
excludesFiles and folders that are skipped.
InspectSourceRequest
What to back up. The fields depend on the type, see the description of each field. Fields left out keep their value on an existing job.
jobFormatted ID of the backup job whose source changes. The source fields left out keep the job's value, including its stored database password. Leave it out to test the source of a new job.
serverFormatted ID of the enrolled server that tests the source of a new job.
typeThe type of the new job.
MySqlBackupSource
hostportusernamepassword_setWhether a password is stored. It is never returned.
password_fileselection_modeWhich databases a database backup job backs up: every database the user can read, the listed databases, or all but the listed databases.
databasesinclude_routinesinclude_eventscustom_flagstable_selectionThe tables the job is limited to, null for all tables.
PostgreSqlBackupSource
hostportusernamepassword_setWhether a password is stored. It is never returned.
password_fileconnection_databaseselection_modeWhich databases a database backup job backs up: every database the user can read, the listed databases, or all but the listed databases.
databasestable_selectionThe tables the job is limited to, null for all tables.
QueueMaintenanceRequest
operationforget removes the backups the keep policy no longer needs, prune frees the storage they used at every storage destination, snapshot_inventory rechecks which backups are still stored.
S3StorageSettings
endpointregionbucketroot_pathPath inside the bucket that holds the repositories.
SaveBackupJobRequest
nameDisplay name of the backup job.
serverFormatted ID of the enrolled server that runs the job. It cannot be changed later.
storage_destinationFormatted ID of the storage destination that keeps the main copy. It cannot be changed later.
typeWhat the job backs up. It cannot be changed later.
What to back up. The fields depend on the type, see the description of each field. Fields left out keep their value on an existing job.
source_inspectionFormatted ID of a completed, successful source test of exactly this source, at most 10 minutes old. Required when creating a job and when changing the source of a job.
When the job runs. A new job runs every day at the next full hour when it is left out; fields left out keep the schedule of an existing job.
How many backups to keep. Tiers left out keep their value, or the default for the schedule on a new job. Tiers the schedule makes redundant are folded into last.
attempt_idULID that identifies this creation attempt. Retrying with the same ID and the same job returns the job created the first time instead of a second job.
SaveServerRequest
nameDisplay name of the server.
agent_auto_updatesWhether the server installs new agent releases automatically, null to follow the team setting.
SaveStorageDestinationRequest
nameDisplay name of the destination, unique within the team.
driverStorage driver. local is only available in development.
The settings of the driver; only the fields of the driver may be given. Fields left out keep their value on an existing destination of the same driver.
Server
idFormatted server ID.
namehostnameHostname the agent reported, null until it enrolls.
statuspending until an agent enrolls with an enrollment token, enrolled while an agent is set up, revoked once its agent was revoked.
connectedWhether the server is enrolled and its agent reported within the last few minutes.
platformOperating system and CPU architecture the agent reported.
last_contact_atWhen the agent last contacted Backup Chief.
enrolled_atrevoked_atcreated_atactive_jobs_countNumber of active backup jobs on the server.
jobs_countNumber of backup jobs on the server, including paused ones.
The one-time enrollment token, only included in the response that issued it.
ServerStatus
The enrollment status of a server: pending until an agent enrolls, enrolled while an agent is set up, revoked once its agent was revoked.
SftpAuthMethod
How an SFTP storage destination signs in: a password, or an Ed25519 key generated in the Backup Chief app.
SftpStorageSettings
hostportusernameroot_pathauth_methodpassword, or ed25519 for a key generated in Backup Chief.
public_keyPublic key to authorize on the SFTP server, null for password authentication.
fingerprintFingerprint of the public key, null for password authentication.
host_keysHost keys of the SFTP server pinned at the first connection. Connections presenting another key are refused.
Snapshot
idFormatted snapshot ID.
snapshot_idThe restic snapshot ID in the repository the backup wrote to.
run_idFormatted ID of the backup run that made the snapshot. Keeping forever and expiring work on this run, the recovery point.
availabilityWhether the snapshot can still be restored from the repository the backup wrote to.
source_bytesBytes the backup read for this snapshot.
stored_bytesNew bytes this snapshot added to the repository after deduplication.
databaseThe database of a database backup snapshot, null for file backups.
kept_forever_atWhen the recovery point was set to be kept forever, null when the job's retention policy applies.
The copies of the snapshot in extra copy repositories.
taken_atWhen the backup that made the snapshot finished.
created_atSourceInspection
idFormatted source inspection ID, pass it as source_inspection when saving the backup job.
statuspending until the agent picks the test up, acknowledged while it runs, then completed with a result, or expired when the agent did not run it in time.
successfulWhether the source can be used: the test completed successfully. The job must be saved within 10 minutes of completion.
resultWhat the agent found, null until the test completed.
guidanceHow to fix a failed test, null unless the test failed.
expires_atWhen the agent must have picked the test up.
completed_atcreated_atSourceInspectionResultCode
The result of a source inspection: success, or why the agent could not use the source.
StorageDestination
idFormatted storage destination ID.
namedriverWhere repositories are stored: s3 for S3-compatible storage, sftp for an SFTP server, local for development storage.
s3 The S3 storage driver, which can be used with any S3-compatible storage services. |
sftp SFTP storage authenticated by password or a generated Ed25519 key. |
local Development only storage driver, should never be used in production. |
locationHuman-readable location of the destination.
The settings of the driver: S3StorageSettings for s3, SftpStorageSettings for sftp, LocalStorageSettings for local. Credentials are never returned.
credentials_updated_atWhen the credentials were last replaced, null when they never changed.
servers_on_previous_credentialsServers that did not apply the latest credentials yet. Wait until this is 0 before revoking the old credentials at the provider.
in_useWhether a backup job keeps its main copy or an extra copy here, which prevents deleting the destination and changing its location.
jobs_countBackup jobs that keep their main copy here.
extra_copies_countBackup jobs that keep an extra copy here.
stored_bytesBytes the repositories at this destination last reported, null until any was measured.
created_atStorageDriver
s3 The S3 storage driver, which can be used with any S3-compatible storage services. |
sftp SFTP storage authenticated by password or a generated Ed25519 key. |
local Development only storage driver, should never be used in production. |
Team
slugTeam slug, the value of the X-Chief-Team header.
nametimezoneTimezone of the team.
agent_auto_updatesWhether servers install new agent releases automatically, unless a server overrides it.
The plan limits of the team. A null limit is unlimited.