CLI Reference¶
docker-backup provides a command-line interface for managing backups and running the daemon.
Global Flags¶
These flags apply to all commands:
| Flag | Default | Description |
|---|---|---|
--docker-host |
unix:///var/run/docker.sock |
Docker daemon socket |
--socket |
/var/run/docker-backup.sock |
Unix socket for daemon communication |
--log-level |
info |
Log level: debug, info, warn, error |
--log-format |
text |
Log format: text, json |
Commands¶
daemon¶
Start the backup daemon. See daemon for full documentation.
backup¶
Backup management commands. See backup for full documentation.
Subcommands:
run <container>- Trigger immediate backuplist <container>- List backups for a containerdelete <container> <key>- Delete a backuprestore <container> <key>- Restore a backup
htpasswd¶
Generate htpasswd-style password hashes. See htpasswd for full documentation.
Exit Codes¶
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |