btrbk is a command-line utility in Linux that is used to manage and automate backups of btrfs file systems. btrbk is a flexible and powerful tool that allows you to create and manage snapshots of btrfs file systems, and to schedule and perform backups on a regular basis.
btrbk is designed to work with btrfs, a copy-on-write (CoW) file system that is included in the Linux kernel and is known for its advanced features and capabilities, such as snapshotting, incremental backups, and more. btrbk is designed to leverage these features and provide an easy and convenient way to create and manage backups of btrfs file systems.
If you encounter the below error while running the btrbk command:
btrbk: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install btrbk |
Ubuntu | apt-get install btrbk |
Alpine | apk add btrbk |
Kali Linux | apt-get install btrbk |
Fedora | dnf install btrbk |
Raspbian | apt-get install btrbk |
btrbk Command Examples
1. Print statistics about configured subvolumes and snapshots:
# btrbk stats
2. List configured subvolumes and snapshots:
# btrbk list
3. Print what would happen in a run without making the displayed changes:
# btrbk --verbose dryrun
4. Run backup routines verbosely, show progress bar:
# btrbk --progress --verbose run
5. Only create snapshots for configured subvolumes:
# btrbk snapshot