Skip to main content
POST
cURL
This endpoint has a rate limit of 1 request per second.

Authorizations

Authorization
string
header
required

Your CamposCloud API token, sent as Authorization: Bearer <token>.

Path Parameters

databaseId
string
required

ID of the database.

Pattern: ^[a-f0-9]{24}$

Response

The backup started.

A copy of a database's data, made by the database engine itself (mysqldump, pg_dump, mongodump or Redis' RDB), gzipped, encrypted and kept off the server. For PostgreSQL, the backup holds the database created with it (POSTGRES_DB); other databases created inside the same instance are not included.

_id
string

ID of the backup.

databaseInstanceId
string

ID of the database.

type
enum<string>

manual backups are made on request and kept until deleted (up to 4 per database). automatic ones leave on their own.

Available options:
manual,
automatic
reason
enum<string>

Why it exists: asked for, the daily one (the 7 newest are kept), or the copy taken right before a restore (the 2 newest are kept).

Available options:
manual,
daily,
before-restore
status
enum<string>
Available options:
pending,
running,
done,
failed
engine
enum<string>
Available options:
mysql,
postgresql,
mongodb,
redis
sizeInBytes
integer | null

Size of the gzipped dump, which is what a download gives.

sha256
string | null

SHA-256 of the gzipped dump.

error
string | null

Why it failed, when status is failed.

startedAt
string<date-time> | null
finishedAt
string<date-time> | null
restoredAt
string<date-time> | null

The last time it was restored into its database.

restore
object | null

The last restore asked for from this backup.

createdAt
string<date-time>
errorCode
string | null

A stable code for error, such as BACKUP_TOO_LARGE, DATABASE_NOT_RUNNING or BACKUP_TIMEOUT.

databaseName
string | null

The database's name when the backup was made (kept after the database is deleted).