stackblaze backups
Recovery points of a project environment - back up, restore as new databases and volumes
Usage: stackblaze backups|backup [options] [command]
Recovery points of a project environment: back up, restore as new databases and
volumes
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text",
"json")
-h, --help Print help
Commands:
list|ls [options] List recovery points: time, status, what each holds
(everything or partial)
show|get [options] <id> What a recovery point holds (databases, volumes)
and what a restore would create
create [options] Back the environment up now, or only --only
<service|database> (a partial recovery point)
restore [options] <id> Restore a recovery point as NEW databases and
volumes (everything, or chosen items); nothing
running changes
status [options] The running restore (new databases / volumes being
created), or one that ended in the last 10 minutes
schedule [options] Show the environment's backup schedule (read only;
set it in the dashboard)
delete|rm [options] <id> Delete a recovery point and its data (confirm by
typing its id)backups list
Usage: stackblaze backups list|ls [options]
List recovery points: time, status, what each holds (everything or partial)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
The recovery points of an environment, newest first:
stackblaze backups list -p github-demo-gv35 -e devOK github-demo-gv35/dev recovery points
┌───────────────────────────────────────────┬──────────────────┬───────────┬─────────┬────────────────────────────────────┬──────┐
│ ID │ Time │ Status │ Trigger │ Contents │ Size │
├───────────────────────────────────────────┼──────────────────┼───────────┼─────────┼────────────────────────────────────┼──────┤
│ manual-github-demo-gv35-dev-1795522713511 │ 2026-11-24 12:19 │ Completed │ manual │ everything (1 database, 1 volume) │ — │
├───────────────────────────────────────────┼──────────────────┼───────────┼─────────┼────────────────────────────────────┼──────┤
│ manual-github-demo-gv35-dev-1795522382810 │ 2026-11-24 12:13 │ Completed │ manual │ everything (1 database, 0 volumes) │ — │
└───────────────────────────────────────────┴──────────────────┴───────────┴─────────┴────────────────────────────────────┴──────┘backups show
Usage: stackblaze backups show|get [options] <id>
What a recovery point holds (databases, volumes) and what a restore would
create
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
What a recovery point holds, and what restoring it would create:
stackblaze backups show manual-github-demo-cw8z-dev-1795617417246 -p github-demo-cw8z -e devOK github-demo-cw8z/dev recovery point manual-github-demo-cw8z-dev-1795617417246 Completed
time 2026-11-25T14:37:00Z
trigger manual
contents partial: whiteboard-8stj-postgresql-6bt2
expires 2026-12-02T14:36:58Z
Databases:
whiteboard-8stj-postgresql-6bt2
Volumes:
none
Restore: as NEW databases and volumes — everything in the point, or only chosen items (--database / --volume); nothing running is touched. See `stackblaze backups restore --help`.backups create
Usage: stackblaze backups create [options]
Back the environment up now, or only --only <service|database> (a partial
recovery point)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
--only <name> Back up only this service or database (repeatable, or
comma-separated)
--wait Wait until the backup and its database dumps are done
(exit 1 if it fails) (default: false)
--timeout <seconds> Max --wait time (default: 1800)
--ci Output NDJSON events (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
A recovery point holds the environment's services, its volumes and a dump of
each database. --only makes a PARTIAL point with the data of just the named
services (their volumes) and databases. Never creates or changes a schedule.
Examples:
$ stackblaze backups create --wait
$ stackblaze backups create --only web --only web-postgresql -e stagingExample
Take a partial recovery point of just the whiteboard app and its database, and wait until the dump is saved:
stackblaze backups create -p github-demo-cw8z -e dev --only whiteboard,whiteboard-8stj-postgresql-6bt2 --waitBackup manual-github-demo-cw8z-dev-1795617417246 started — waiting for it to finish…
backup manual-github-demo-cw8z-dev-1795617417246 → InProgress
backup manual-github-demo-cw8z-dev-1795617417246 → saving databases
backup manual-github-demo-cw8z-dev-1795617417246 → Completed
OK Backup manual-github-demo-cw8z-dev-1795617417246 completed (partial: whiteboard-8stj-postgresql-6bt2)The app has no volumes, so the point holds only the database.
backups restore
Usage: stackblaze backups restore [options] <id>
Restore a recovery point as NEW databases and volumes (everything, or chosen
items); nothing running changes
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
--database <name> Only this database (repeatable, or comma-separated)
--volume <name> Only this volume, by PVC or volume name (repeatable,
or comma-separated)
--copy No longer needed (every restore creates new databases
and volumes); accepted for compatibility (default:
false)
-y, --yes Accepted for compatibility (a restore needs no
confirmation: nothing running changes) (default:
false)
--wait Wait until the new databases and volumes are ready
(exit 1 if the restore fails) (default: false)
--timeout <seconds> Max --wait time (default: 2700)
--ci Output NDJSON events (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print help
<id> is a recovery point from `stackblaze backups list` (a unique prefix
works), or `latest`.
A restore ALWAYS creates NEW databases and volumes under new names. The
running environment is never touched: you choose when to connect your app to
the new ones (`stackblaze apps update`, or the dashboard) and when to delete
the old ones. Both are billed until then.
(no item flags) new copies of everything in the point.
--database / --volume new copies of only those items.
Examples:
$ stackblaze backups restore latest --database web-postgresql
$ stackblaze backups restore velero-demo-production-20261103 --volume data
$ stackblaze backups restore latest --wait -e stagingExample
Restore only the database from the newest recovery point, as a new database. Nothing running changes:
stackblaze backups restore latest --database whiteboard-8stj-postgresql-6bt2 -p github-demo-cw8z -e devOK Restore b55c0774-27d9-4e7f-b893-c73d874d7282 started for github-demo-cw8z/dev
Follow it with `stackblaze backups status -p github-demo-cw8z -e dev` (or pass --wait).backups status
Usage: stackblaze backups status [options]
The running restore (new databases / volumes being created), or one that ended
in the last 10 minutes
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Follow a restore. While it runs:
stackblaze backups status -p github-demo-cw8z -e devOK Copy b55c0774-27d9-4e7f-b893-c73d874d7282 from manual-github-demo-cw8z-dev-1795617417246: Copying
dumps running
volumes pending
whiteboard-8stj-postgresql-6bt2 → whiteboard-8stj-postgresql-restored-z27rWhen a restore has finished, the last line names the new database:
OK Copy 0465f4c7-bd44-407c-b873-6eb59c30c738 from manual-github-demo-cw8z-dev-1795617417246: Succeeded
dumps done
volumes skipped
whiteboard-8stj-postgresql-6bt2 → whiteboard-8stj-postgresql-restored-nev0With no restore running or ended in the last 10 minutes:
OK No restore running in github-demo-gv35/dev (none ended in the last 10 minutes)backups schedule
Usage: stackblaze backups schedule [options]
Show the environment's backup schedule (read only; set it in the dashboard)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
See whether the environment is backed up on a schedule. The CLI only reads it; you turn it on in the dashboard:
stackblaze backups schedule -p github-demo-cw8z -e devOK github-demo-cw8z/dev scheduled backups: off
Set the schedule in the dashboard (environment → Backups). The CLI never creates a schedule.The JSON lists each cadence with its cron and how long its points are kept:
stackblaze backups schedule -p github-demo-cw8z -e dev --json{
"pipeline": "github-demo-cw8z",
"phase": "dev",
"cadences": [
{
"id": "6h",
"enabled": false,
"retentionHours": 168,
"cron": "0 */6 * * *"
},
{
"id": "daily",
"enabled": false,
"retentionHours": 144,
"cron": "0 2 * * *"
},
{
"id": "weekly",
"enabled": false,
"retentionHours": 720,
"cron": "0 3 * * 0"
},
{
"id": "monthly",
"enabled": false,
"retentionHours": 720,
"cron": "0 4 1 * *"
}
],
"pvcNames": null
}backups delete
Usage: stackblaze backups delete|rm [options] <id>
Delete a recovery point and its data (confirm by typing its id)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
-p, --project <name> Project name
-e, --env <name> Environment name (default: production)
--json Output JSON (same as -o json) (default: false)
-y, --yes Skip the confirmation prompt (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Delete a recovery point you no longer need. You confirm by typing its id:
stackblaze backups delete manual-github-demo-cw8z-dev-1795617417246 -p github-demo-cw8z -e dev! This deletes recovery point manual-github-demo-cw8z-dev-1795617417246 (2026-11-25T14:37:00Z) of github-demo-cw8z/dev and its data.
Type "manual-github-demo-cw8z-dev-1795617417246" to confirm:
OK Deleted recovery point manual-github-demo-cw8z-dev-1795617417246