Skip to content

stratumctl backup

Managed backup: plans, vaults, recovery points, restore

Terminal window
stratumctl backup [flags]

Manage scheduled backup plans

Terminal window
stratumctl backup plan [flags]

Aliases: plans

Create a backup plan (one cron rule + keep-N retention + selection)

Terminal window
stratumctl backup plan create [flags]
Terminal window
stratumctl backup plan create --name nightly --schedule '0 3 * * *' --retention 7 --volume vol-3k8m2x7q9a
stratumctl backup plan create --name by-tag --schedule '0 2 * * 0' --retention 4 --tag-selector backup=weekly
Flag Type Default Description
--disabled bool false Create the plan disabled
--display-name string Human-readable name (defaults to –name)
--name string Plan name (unique within the project)
--project string Project ID (defaults to env STRATUM_PROJECT or profile)
--retention int 0 Keep the newest N successful points per volume
--schedule string Standard 5-field cron, e.g. ‘0 3 * * *’
--tag stringToString Plan tag key=value (repeatable)
--tag-selector stringToString AND tag match key=value (repeatable)
--vault string Target vault bv-… (empty = the project’s default vault)
--volume stringArray Volume ID to back up (repeatable)

Delete a backup plan (its recovery points are kept)

Terminal window
stratumctl backup plan delete <bp-id> [flags]
Terminal window
stratumctl backup plan delete bp-4m8x2k7q9a
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

Describe a backup plan

Terminal window
stratumctl backup plan get <bp-id> [flags]
Terminal window
stratumctl backup plan get bp-4m8x2k7q9a
stratumctl backup plan get bp-4m8x2k7q9a --output json
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

List the project’s backup plans

Terminal window
stratumctl backup plan list [flags]
Terminal window
stratumctl backup plan list
stratumctl backup plan list --output json
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

Run a backup plan now (the scheduler picks it up within one tick)

Terminal window
stratumctl backup plan run <bp-id> [flags]
Terminal window
stratumctl backup plan run bp-4m8x2k7q9a
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

Update a backup plan (sparse: only supplied flags change)

Terminal window
stratumctl backup plan update <bp-id> [flags]
Terminal window
stratumctl backup plan update bp-4m8x2k7q9a --retention 14
stratumctl backup plan update bp-4m8x2k7q9a --disable
Flag Type Default Description
--disable bool false Disable the plan
--display-name string Human-readable name
--enable bool false Enable the plan
--project string Project ID (defaults to env STRATUM_PROJECT or profile)
--retention int 0 Keep the newest N successful points per volume
--schedule string Standard 5-field cron
--tag-selector stringToString Replace the tag selector key=value (repeatable)
--volume stringArray Replace the volume selection (repeatable)

List, inspect and delete recovery points

Terminal window
stratumctl backup recovery-point [flags]

Aliases: rp, recovery-points

Delete a recovery point (chain-aware: 409 while later increments depend on it)

Terminal window
stratumctl backup recovery-point delete <rp-id> [flags]
Terminal window
stratumctl backup recovery-point delete rp-7k2m9x4q8a
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

Describe a recovery point

Terminal window
stratumctl backup recovery-point get <rp-id> [flags]
Terminal window
stratumctl backup recovery-point get rp-7k2m9x4q8a
stratumctl backup recovery-point get rp-7k2m9x4q8a --output json
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

List the project’s recovery points (newest first)

Terminal window
stratumctl backup recovery-point list [flags]
Terminal window
stratumctl backup recovery-point list
stratumctl backup recovery-point list --plan bp-4m8x2k7q9a
stratumctl backup recovery-point list --volume vol-3k8m2x7q9a --output json
Flag Type Default Description
--plan string Filter by producing plan (bp-…)
--project string Project ID (defaults to env STRATUM_PROJECT or profile)
--vault string Filter by vault (bv-…)
--volume string Filter by source volume (vol-…)

Restore a recovery point (no identity needed — the service key decrypts)

Terminal window
stratumctl backup restore <rp-id> [flags]

Starts a tenant self-service restore: mode ‘newVolume’ mints a fresh volume from the point (–name overrides the volume name), mode ‘inPlace’ re-imports into the existing volume whose backing image was lost (–volume overrides the target). Poll the returned operation for progress.

Terminal window
stratumctl backup restore rp-7k2m9x4q8a --name restored-data
stratumctl backup restore rp-7k2m9x4q8a --mode inPlace --volume vol-3k8m2x7q9a
Flag Type Default Description
--mode string newVolume Restore mode: newVolume | inPlace
--name string newVolume only: the new volume’s name
--project string Project ID (defaults to env STRATUM_PROJECT or profile)
--volume string inPlace only: target volume (defaults to the point’s source)

Manage backup vaults (logical recovery-point containers)

Terminal window
stratumctl backup vault [flags]

Aliases: vaults

Create a backup vault

Terminal window
stratumctl backup vault create [flags]
Terminal window
stratumctl backup vault create --name offsite --display-name "Offsite vault"
Flag Type Default Description
--display-name string Human-readable name (defaults to –name)
--name string Vault name (unique within the project; ‘default’ is reserved)
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

Delete a backup vault (refused while plans or points reference it)

Terminal window
stratumctl backup vault delete <bv-id> [flags]
Terminal window
stratumctl backup vault delete bv-2k8m4x7q9a
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)

List the project’s backup vaults (includes the auto-created default)

Terminal window
stratumctl backup vault list [flags]
Terminal window
stratumctl backup vault list
stratumctl backup vault list --output json
Flag Type Default Description
--project string Project ID (defaults to env STRATUM_PROJECT or profile)