butterfs
is a TUI for managing Btrfs snapshots. Create and delete snapshots with a single click.
- Text-based user interface
- Ability to create and delete snapshots
- Btrfs balance functionality
- Grub-mkconfig functionality
_active
_active/rootvol
_active/homevol
_active/log
_snapshots
_snapshots/rootvol-20250525-112410
_snapshots/rootvol-20250525-121931
btrfs-progs
df
To install butterfs
, follow these steps:
-
Make sure you have Go installed (version 1.16 or higher).
-
Clone the repository:
git clone https://github.com/MuratovAS/butterfs.git; cd butterfs
-
Build the project:
go build -o butterfs
-
(Optional) Move the executable to a directory included in PATH for convenient access:
sudo mv butterfs /usr/local/bin/
After installation, you can use butterfs by specifying the path to the Btrfs partition:
sudo ./butterfs /mnt/defvol
#OR
sudo butterfs /path/to/btrfs/partition
You can override subvolume prefixes if needed.
SUBVOLUME_PREFIX="_active"
SNAPSHOT_PREFIX="_snapshots"
We welcome contributions to the project! If you'd like to contribute, please create a pull request or open an issue to discuss proposed changes.
This project is distributed under the GPL-3.0 license. Additional information can be found in the LICENSE file.