btrbk is a script for automating btrfs
backups using snapshots and send/receive. It has a "backend" btrfs-progs-btrbk, which is a patchset for btrfs-progs
and is used to create individual binaries, eg. btrfs-subvolume-show
, btrfs-subvolume-list
, etc. The point of these binaries is to allow privilege separation using capabilities
(7) so btrfs
itself doesn't need to be given root privileges when btrbk is run as a cron script, only a few subcommands.
I am confused why the patchset, rather than simply a series of scripts for each of these commands. After all, btrbk
itself is a pearl script. Does anyone have any insight?