← cyphonix.comSign in to the console
Cyphonix Backup

Home › Documentation › Configuration › Command line

Command-line reference

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

CommandDescription
cbk versionPrint the agent version and build
cbk statusTenant, device name, region, last and next backup, service state
cbk status --jsonThe same, as JSON, for monitoring tools
cbk help <command>Help for a command

Registration

CommandDescription
cbk enrol --key KEY [--name NAME]Register this device
cbk enrol --passphrase-promptPrompt for a customer-held passphrase during registration
cbk unenrolRemove the registration from this device. Does not delete restore points.

Backup

CommandDescription
cbk backup nowStart a backup immediately
cbk backup now --waitStart a backup and wait; exit code reflects the result
cbk backup cancelCancel the running job
cbk backup history [-n 20]Recent jobs on this device
cbk sources test PATHShow whether a path is included and why

Restore

CommandDescription
cbk restore listList restore points
cbk restore files --point ID --path PATH --to DIRRestore files or folders
cbk restore mount --point ID --at DIRMount a restore point read-only (Windows and Linux)
cbk restore unmount DIRUnmount

Configuration

CommandDescription
cbk config show [--effective]Show configuration
cbk config get KEYShow one value
cbk config set KEY VALUESet a value
cbk config add KEY VALUEAdd to a repeatable key
cbk config remove KEY VALUERemove from a repeatable key
cbk passphrase changeChange the customer-held passphrase
cbk proxy credentialsSet proxy credentials

Diagnostics

CommandDescription
cbk diagnostics networkTest connectivity to each service hostname
cbk diagnostics collect [--out FILE]Create a diagnostics bundle for support
cbk cache verifyCheck the local cache against the service
cbk cache rebuildDiscard and rebuild the local cache
cbk ui restartRestart the notification area or menu bar application

Exit codes

CodeMeaning
0Success
1General error
2Invalid arguments
3Not registered
4Service not running
10Job completed with warnings
11Job failed
12Job cancelled

Example: monitoring check

cbk status --json | jq -e '.last_backup.age_hours < 26'

Last reviewed: · Report a problem with this page