shelly backup create
shelly backup create#
Create a device backup
Synopsis#
Create a complete backup of a Shelly device.
The backup includes configuration, scripts, schedules, and webhooks.
If no file is specified, backup is written to stdout.
Use –encrypt to password-protect the backup (password verification only,
sensitive data is not encrypted in the file).
1
| shelly backup create <device> [file] [flags]
|
Examples#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| # Create backup to file
shelly backup create living-room backup.json
# Create YAML backup
shelly backup create living-room backup.yaml --format yaml
# Create backup to stdout
shelly backup create living-room
# Create encrypted backup
shelly backup create living-room backup.json --encrypt mysecret
# Skip scripts in backup
shelly backup create living-room backup.json --skip-scripts
|
Options#
1
2
3
4
5
6
| -e, --encrypt string Password to protect backup
-f, --format string Output format (json, yaml) (default "json")
-h, --help help for create
--skip-schedules Exclude schedules from backup
--skip-scripts Exclude scripts from backup
--skip-webhooks Exclude webhooks from backup
|
Options inherited from parent commands#
1
2
3
4
5
6
7
8
9
10
11
12
| --config string Config file (default $HOME/.config/shelly/config.yaml)
--log-categories string Filter logs by category (comma-separated: network,api,device,config,auth,plugin)
--log-json Output logs in JSON format
--no-color Disable colored output
--no-headers Hide table headers in output
--offline Only read from cache, error on cache miss
-o, --output string Output format (table, json, yaml, template) (default "table")
--plain Disable borders and colors (machine-readable output)
-q, --quiet Suppress non-essential output
--refresh Bypass cache and fetch fresh data from device
--template string Go template string for output (use with -o template)
-v, --verbose count Increase verbosity (-v=info, -vv=debug, -vvv=trace)
|
SEE ALSO#