The cbk command is installed with the agent on all platforms except Synology and QNAP, where it is available over SSH at /var/packages/CyphonixBackup/target/bin/cbk. Run it from an elevated prompt on Windows or with sudo elsewhere.
cbk <command> [subcommand] [options]
General
Command
Description
cbk version
Print the agent version and build
cbk status
Tenant, device name, region, last and next backup, service state
cbk status --json
The same, as JSON, for monitoring tools
cbk help <command>
Help for a command
Registration
Command
Description
cbk enrol --key KEY [--name NAME]
Register this device
cbk enrol --passphrase-prompt
Prompt for a customer-held passphrase during registration
cbk unenrol
Remove the registration from this device. Does not delete restore points.
Backup
Command
Description
cbk backup now
Start a backup immediately
cbk backup now --wait
Start a backup and wait; exit code reflects the result
cbk backup cancel
Cancel the running job
cbk backup history [-n 20]
Recent jobs on this device
cbk sources test PATH
Show whether a path is included and why
Restore
Command
Description
cbk restore list
List restore points
cbk restore files --point ID --path PATH --to DIR
Restore files or folders
cbk restore mount --point ID --at DIR
Mount a restore point read-only (Windows and Linux)
cbk restore unmount DIR
Unmount
Configuration
Command
Description
cbk config show [--effective]
Show configuration
cbk config get KEY
Show one value
cbk config set KEY VALUE
Set a value
cbk config add KEY VALUE
Add to a repeatable key
cbk config remove KEY VALUE
Remove from a repeatable key
cbk passphrase change
Change the customer-held passphrase
cbk proxy credentials
Set proxy credentials
Diagnostics
Command
Description
cbk diagnostics network
Test connectivity to each service hostname
cbk diagnostics collect [--out FILE]
Create a diagnostics bundle for support
cbk cache verify
Check the local cache against the service
cbk cache rebuild
Discard and rebuild the local cache
cbk ui restart
Restart the notification area or menu bar application
Exit codes
Code
Meaning
0
Success
1
General error
2
Invalid arguments
3
Not registered
4
Service not running
10
Job completed with warnings
11
Job failed
12
Job cancelled
Example: monitoring check
cbk status --json | jq -e '.last_backup.age_hours < 26'