Skip to content

Backups

Site backups, restores, and where backups are stored. For the same in the control panel, see Back up and restore a site.

Operations

OperationRequest
Get a site's backups GET /v1/sites/{siteId}/backup
List a site's backups GET /v1/sites/{siteId}/backups
Choose where and how often a site is backed up PUT /v1/sites/{siteId}/backup/settings
Turn a site's backups off POST /v1/sites/{siteId}/backup/actions/disable
Back a site up now POST /v1/sites/{siteId}/backups
Restore a site from a backup POST /v1/sites/{siteId}/backups/{backupId}/actions/restore
Cancel a running backup POST /v1/sites/{siteId}/backups/{backupId}/actions/cancel
Delete a backup DELETE /v1/sites/{siteId}/backups/{backupId}
Download a backup's files or database GET /v1/sites/{siteId}/backups/{backupId}/download
List your backup storage GET /v1/backup-destinations
Get backup storage GET /v1/backup-destinations/{destinationId}
Connect backup storage POST /v1/backup-destinations
Rename backup storage PATCH /v1/backup-destinations/{destinationId}
Check backup storage POST /v1/backup-destinations/{destinationId}/actions/check
Remove backup storage DELETE /v1/backup-destinations/{destinationId}

The SiteBackup object

A site's backups at a glance: where they go and how often, what Rabbitflare Backup would cost, the newest backup and the latest restore. The backups themselves are a list of their own (GET /sites/{siteId}/backups).

FieldType and description
settings

object or null

Where the site's backups go and how often. Null while backups are off for the site: PUT /sites/{siteId}/backup/settings turns them on.

destination

string

Where backups go: rabbitflare (Rabbitflare Backup), or the id of your storage (GET /backup-destinations).

region

string or null

Where Rabbitflare Backup keeps them: virginia (United States), frankfurt (Europe) or singapore (Asia Pacific). Null for storage of your own.

Known values: virginiafrankfurtsingapore More can appear.

frequency

string

daily, weekly, or manual (only when one is started).

Known values: dailyweeklymanual More can appear.

hour

integer

The hour of the day (0 to 23, UTC) a scheduled backup starts.

weekday

integer

The day a weekly backup is made, from 0 (Sunday) to 6 (Saturday).

keep

integer

How many backups are kept (1 to 60): when one more completes, the oldest beyond that number are deleted. Backups made just before a restore count too.

paused

boolean

Whether scheduled backups are paused (see pausedReason).

pausedReason

string or null

Why they're paused, in one plain sentence. Null while they aren't.

nextRunAt

string or null An ISO 8601 time, in UTC

When the next scheduled backup is due. Null for manual, and while they're paused.

suggestedRegion

string

The Rabbitflare Backup region nearest the site's server.

Known values: virginiafrankfurtsingapore More can appear.

prices

array of objects

What Rabbitflare Backup would cost this site in each region. It's billed by use, after each month: the site's fee for the days it's backed up there, and the space its backups take up. Storage of your own costs nothing.

region

string

The region: virginia (United States), frankfurt (Europe) or singapore (Asia Pacific).

Known values: virginiafrankfurtsingapore More can appear.

name

string

Its name, like Europe (Frankfurt).

siteFeeCents

integer

The fee for backing the site up there, per month, in US cents, counted by the day: 0 for sites on Amazon EC2 and Google Cloud servers.

centsPerGbMonth

number

What each GB (1,073,741,824 bytes) of the site's backups costs per month, in US cents (it can have decimals).

currency

string Always "usd"

Always usd: amounts are in US cents.

hasCard

boolean

Whether the account has a saved card, which Rabbitflare Backup needs (402 payment_method_required without one): its monthly bill is paid from the wallet first, then the card.

storedBytes

integer

What the site's completed backups in Rabbitflare Backup take up now: what their storage is billed on.

latestBackup

object or null

The site's newest backup: the one running, else the last one made. Null before the first. All of them: GET /sites/{siteId}/backups.

id

string

The backup's id.

status

string

running (being made, or waiting its turn: see stage), completed, failed (see error) or deleting (being deleted from its storage: it leaves the list when that's done).

Known values: runningcompletedfaileddeleting More can appear.

trigger

string

Why it was made: scheduled (the site's daily or weekly backup), manual (asked for, in the panel or with POST /sites/{siteId}/backups) or before_restore (the site as it was just before a restore, so the restore can be undone).

Known values: scheduledmanualbefore_restore More can appear.

location

string

Where it's kept, in words: Rabbitflare Backup and its region, or the name your storage had when the backup was made.

sizeBytes

integer or null

Its whole size. Null until it's completed.

filesBytes

integer or null

The size of its files part (a .tar.gz archive). Null until it's completed.

databaseBytes

integer or null

The size of its database part (a gzipped SQL dump). Null until it's completed.

progress

number or null

How far it got, from 0 to 1, when that's known (1 once it's completed). Null otherwise.

stage

string or null

What it's doing while it runs, like Backing up the database or Waiting for another backup on the server to finish. Null otherwise.

error

string or null

Why it failed, in one plain sentence. Null unless it failed.

startedAt

string An ISO 8601 time, in UTC

When it was started (asked for, or due).

finishedAt

string or null An ISO 8601 time, in UTC

When it completed or failed. Null while it runs.

canRestore

boolean

Whether the site can be restored from it (POST /sites/{siteId}/backups/{backupId}/actions/restore): a completed backup whose storage is still connected.

canDownload

boolean

Whether its parts can be downloaded (GET /sites/{siteId}/backups/{backupId}/download). False for a backup on an SFTP server: download it from that server. A backup in Google Drive is kept there as a folder: its download answers 409 conflict with the folder's link.

restore

object or null

The site's latest restore from the last 24 hours, running or finished. Null when there's none.

id

string

The restore's id.

backupId

string

The backup it restores from.

parts

string

What it restores: all (the files and the database), files or database.

Known values: allfilesdatabase More can appear.

status

string

waiting (to start), running (see stage), completed or failed (see error; the site was left as it was).

Known values: waitingrunningcompletedfailed More can appear.

stage

string or null

What it's doing while it runs, like Backing up the site as it is now or Restoring the database. Null otherwise.

error

string or null

Why it failed, in one plain sentence. Null unless it failed.

startedAt

string An ISO 8601 time, in UTC

When it was asked for.

finishedAt

string or null An ISO 8601 time, in UTC

When it completed or failed. Null while it runs.

Example

The SiteBackup object
{
  "settings": {
    "destination": "rabbitflare",
    "region": "frankfurt",
    "frequency": "daily",
    "hour": 3,
    "weekday": 0,
    "keep": 14,
    "paused": false,
    "pausedReason": null,
    "nextRunAt": "2026-11-20T03:00:00.000Z"
  },
  "suggestedRegion": "frankfurt",
  "prices": [
    {
      "region": "virginia",
      "name": "United States (Virginia)",
      "siteFeeCents": 200,
      "centsPerGbMonth": 4.6,
      "currency": "usd"
    },
    {
      "region": "frankfurt",
      "name": "Europe (Frankfurt)",
      "siteFeeCents": 200,
      "centsPerGbMonth": 4.9,
      "currency": "usd"
    },
    {
      "region": "singapore",
      "name": "Asia Pacific (Singapore)",
      "siteFeeCents": 200,
      "centsPerGbMonth": 5,
      "currency": "usd"
    }
  ],
  "hasCard": true,
  "storedBytes": 17953243136,
  "latestBackup": {
    "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
    "status": "completed",
    "trigger": "scheduled",
    "location": "Rabbitflare Backup (Europe (Frankfurt))",
    "sizeBytes": 1284311552,
    "filesBytes": 1201143808,
    "databaseBytes": 83167744,
    "progress": 1,
    "stage": null,
    "error": null,
    "startedAt": "2026-11-19T03:00:04.000Z",
    "finishedAt": "2026-11-19T03:06:41.000Z",
    "canRestore": true,
    "canDownload": true
  },
  "restore": null
}

The Backup object

A backup of a site: its files and its database, as they were when it was made.

FieldType and description
id

string

The backup's id.

status

string

running (being made, or waiting its turn: see stage), completed, failed (see error) or deleting (being deleted from its storage: it leaves the list when that's done).

Known values: runningcompletedfaileddeleting More can appear.

trigger

string

Why it was made: scheduled (the site's daily or weekly backup), manual (asked for, in the panel or with POST /sites/{siteId}/backups) or before_restore (the site as it was just before a restore, so the restore can be undone).

Known values: scheduledmanualbefore_restore More can appear.

location

string

Where it's kept, in words: Rabbitflare Backup and its region, or the name your storage had when the backup was made.

sizeBytes

integer or null

Its whole size. Null until it's completed.

filesBytes

integer or null

The size of its files part (a .tar.gz archive). Null until it's completed.

databaseBytes

integer or null

The size of its database part (a gzipped SQL dump). Null until it's completed.

progress

number or null

How far it got, from 0 to 1, when that's known (1 once it's completed). Null otherwise.

stage

string or null

What it's doing while it runs, like Backing up the database or Waiting for another backup on the server to finish. Null otherwise.

error

string or null

Why it failed, in one plain sentence. Null unless it failed.

startedAt

string An ISO 8601 time, in UTC

When it was started (asked for, or due).

finishedAt

string or null An ISO 8601 time, in UTC

When it completed or failed. Null while it runs.

canRestore

boolean

Whether the site can be restored from it (POST /sites/{siteId}/backups/{backupId}/actions/restore): a completed backup whose storage is still connected.

canDownload

boolean

Whether its parts can be downloaded (GET /sites/{siteId}/backups/{backupId}/download). False for a backup on an SFTP server: download it from that server. A backup in Google Drive is kept there as a folder: its download answers 409 conflict with the folder's link.

Example

The Backup object
{
  "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
  "status": "completed",
  "trigger": "scheduled",
  "location": "Rabbitflare Backup (Europe (Frankfurt))",
  "sizeBytes": 1284311552,
  "filesBytes": 1201143808,
  "databaseBytes": 83167744,
  "progress": 1,
  "stage": null,
  "error": null,
  "startedAt": "2026-11-19T03:00:04.000Z",
  "finishedAt": "2026-11-19T03:06:41.000Z",
  "canRestore": true,
  "canDownload": true
}

The BackupDestination object

Storage of your own that sites can be backed up to. Its keys and passwords are never answered.

FieldType and description
id

string

The storage's id: what a site's backup settings name as destination.

kind

string

What it is: s3 (an Amazon S3 bucket), spaces (a DigitalOcean Space), vultr (Vultr Object Storage), b2 (a B2 bucket, connected in the panel: through the API a B2 bucket connects as s3compat), r2 (a Cloudflare R2 bucket), s3compat (other storage that speaks S3), gdrive (Google Drive), dropbox (Dropbox) or sftp (an SFTP server).

Known values: s3spacesvultrb2r2s3compatgdrivedropboxsftp More can appear.

name

string

Its name.

detail

string

Where it points: a bucket and its folder (shop-backups/sites), the Google or Dropbox account, or the SFTP user, server and folder ([email protected]:site-backups).

status

string

ok (it worked when last checked, or for the last backup), error (see lastError) or pending (an SFTP server waiting for Rabbitflare's key: add publicKey to it, then check it).

Known values: okerrorpending More can appear.

lastError

string or null

What went wrong when it was last checked or used, in one plain sentence. Null unless status is error.

publicKey

string or null

An SFTP server's Rabbitflare key, when it signs in with one: this public half goes in the user's ~/.ssh/authorized_keys on the server. Null otherwise.

hostKeyFingerprint

string or null

An SFTP server's identity (its host key's fingerprint), noted at its first successful check: backups go only to a server that still has it. Null until then, and for other kinds.

siteCount

integer

How many sites back up to it now.

createdAt

string An ISO 8601 time, in UTC

When it was connected.

Example

The BackupDestination object
{
  "id": "8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12",
  "kind": "s3",
  "name": "Amazon S3 · shop-backups",
  "detail": "shop-backups/sites",
  "status": "ok",
  "lastError": null,
  "publicKey": null,
  "hostKeyFingerprint": null,
  "siteCount": 1,
  "createdAt": "2026-11-12T09:30:00.000Z"
}

Popular

API docs