Better Safe
CLI for taking on-demand Snapper snapshots (BTRFS)
About This Project
Better-Safe is a command-line interface written in Shell that wraps the snapper utility to create on-demand BTRFS snapshots with minimal input. Users can run the bettersafe command interactively to be prompted for a description, or pass a description directly with the -d flag. The script checks for sudo privileges and re-runs itself with elevation when needed, verifies that snapper is installed, strips quotation marks from descriptions, and creates the snapshot.
After creating a snapshot, the tool displays its details in the same format as snapper list, including the snapshot number, type, date and time, user, and description. It also shows the previous snapshot and calculates the elapsed time between the two. The project is distributed as a single script that can be made executable and placed in a directory on the user's PATH.
The tool is intended for Linux users who run BTRFS file systems with Snapper configured and want a quick way to capture system state before making changes, such as system updates or configuration edits. It is designed to work across distributions including Ubuntu, Fedora, openSUSE, and Arch Linux.