shc backup
shc backup
Section titled “shc backup”create and manage backups
Synopsis
Section titled “Synopsis”Create, list, restore, and manage backups.
Scheduled backups go into the cluster’s restic repository and nowhere else: encrypted, indexed in the ledger, verifiable, mountable, swept by retention. There is no local backups folder.
A .bak file is the one-off format, and it does exactly three things:
export shc backup create --file <dir|path> and
shc backup export -i <id> --file <dir|path> write one to a
folder you name. There is no default folder.
restore shc backup restore --file <archive> restores straight from
it, here or on any other cluster.
import shc backup import <archive> ingests it into the indexed
store (restic snapshot plus ledger row) after checking
the container adds up. Importing twice leaves one row.
A one-off .bak is not indexed, not encrypted, and never reclaimed by
retention. Delete it when you are done with it.
shc backup [flags]Options
Section titled “Options” -h, --help help for backupOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) -e, --environment string environment name (default: "prod", or "default" on an estate with no licence and no trial; $SHC_ENVIRONMENT and shc ctx -e override it, and the "master" tenant is always "default") --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -s, --stack string stack name (default: $SHC_STACK) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc - Selfhosted Cloud CLI
- shc backup clear-restore-seal - lift the restore seal that is refusing a first-boot seed job on a deployment
- shc backup clear-unusable - clear the unusable stamp a failed recover left on a deployment
- shc backup create - create a backup
- shc backup export - export a backup (or consistency group) to a one-off archive you name
- shc backup group - bundle multiple .bak into one .bkg archive
- shc backup import - ingest a one-off .bak into the indexed store, or sweep a whole local store
- shc backup inspect - inspect a backup archive or group manifest
- shc backup key - manage the backup repository encryption key
- shc backup ls - list backups
- shc backup mirror - copy every backup repository onto the second provider
- shc backup mount - mount a backup as a read-only FUSE tree (on the daemon host)
- shc backup orphan - inspect orphan backups
- shc backup prune - prune unreferenced restic data
- shc backup relocate - point every archive row at a restic repository that moved
- shc backup restore - restore from a backup
- shc backup rm - delete a backup
- shc backup rollback - put a deployment back on its newest pre_* backup
- shc backup schedule - manage scheduled backups
- shc backup sync - sync the local backup index from the restic repository
- shc backup umount - unmount a backup FUSE mount
- shc backup ungroup - split a .bkg back into .bak files
- shc backup verify - report what a backup ID holds, and refuse one that holds no data (for a file use
backup inspect)