Skip to content
SHC Docs

shc backup schedule set

register a scheduled backup for a scope

Register (or replace) the backup schedule for a scope. The cron expression accepts 5-field cron plus @hourly/@daily/@weekly descriptors. The schedule is persisted and survives daemon restarts.

shc backup schedule set <cron> [flags]
shc backup schedule set "0 2 * * *" --scope stack -s myblog
shc backup schedule set "@daily" --scope tenant -t default
shc backup schedule set "@hourly" --scope stack -s myblog --all-connected
--all-connected also back up each matched stack's integration-graph peers
-h, --help help for set
--scope string scope level (global|tenant|environment|stack|deployment) (default "stack")
-s, --stack string stack name (for stack/deployment scopes)
--with-dependants also back up the stacks that depend on each matched stack
--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: $SHC_ENVIRONMENT)
--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)
-t, --tenant string tenant name (default: $SHC_TENANT)
-v, --verbose verbose output (default: $SHC_VERBOSE)