Skip to main content
Requests an on-demand backup of a service. Asks for confirmation unless you pass --yes, because running it twice queues two backups.

Arguments

string
required
The ID of the service to back up, for example clu_abc.

Flags

string
A name for the backup, such as pre-upgrade. Use lowercase letters, numbers and hyphens only. If left out, the server picks a name.
boolean
default:"false"
Skip the confirmation prompt. Required when there’s no terminal.
string
Organization the service belongs to, instead of the selected one.
boolean
default:"false"
Print the result as JSON on stdout.

Examples

Confirmation

Only y continues. Anything else cancels with DECLINED (exit 2). If there’s no terminal and you didn’t pass --yes, the command fails with CONFIRMATION_REQUIRED (exit 2) and sends no request.

Output

The command returns as soon as the backup is queued, not when it finishes:
Check on progress with sabaoth backup list.

Backup statuses

Behavior

  • The organization check happens on the server. Unlike postgres delete, this command doesn’t look up the service first, so it sends a single request. A service in another organization is reported as CLUSTER_NOT_FOUND.
  • Restoring a backup is done in the dashboard. See Backups.

If the result is unknown

If the request was sent but no response came back, the backup may or may not have started. The CLI never retries, to avoid starting a second one. It fails with UNKNOWN_MUTATION_OUTCOME. Run sabaoth backup list <service-id> to check before trying again.

Errors