Linux command
btrbk 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo btrbk stats
List
sudo btrbk list
Example
sudo btrbk -v dryrun
Run backup
sudo btrbk --progress -v run
Example
sudo btrbk snapshot
Resume
sudo btrbk resume
Example
sudo btrbk -c [/path/to/btrbk.conf] run
说明
btrbk is a backup tool for btrfs filesystems that creates and manages snapshots and remote backups. It uses btrfs send/receive for efficient incremental backups and supports complex retention policies. Configuration is defined in /etc/btrbk/btrbk.conf, specifying source subvolumes, snapshot locations, and backup targets including remote hosts via SSH.
参数
- -v, --verbose
- Increase verbosity
- -q, --quiet
- Suppress non-error output
- --progress
- Show progress during send/receive transfers
- -n, --dry-run
- Same as dryrun command
- -c _file_
- Use alternate configuration file
- -p, --preserve
- Preserve all snapshots and backups (no cleanup)
- -t, --table
- Print output in table format
- -l, --loglevel _level_
- Set log verbosity level
- -h, --help
- Print synopsis and list of commands
FAQ
What is the btrbk command used for?
btrbk is a backup tool for btrfs filesystems that creates and manages snapshots and remote backups. It uses btrfs send/receive for efficient incremental backups and supports complex retention policies. Configuration is defined in /etc/btrbk/btrbk.conf, specifying source subvolumes, snapshot locations, and backup targets including remote hosts via SSH.
How do I run a basic btrbk example?
Run `sudo btrbk stats` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v, --verbose do in btrbk?
Increase verbosity