Content
- Backups and Snapshots
- Small CLI tools
- Partition managers
- Data recovery 🚧 (incomplete)
- Programming: BTRFS bindings
official userpace utilities
Tool for doing many BTRFS actions graphically
It requires snapper
and offers a GUI for it.
This is a set of scripts supplementing the btrfs filesystem and aims to automate a few maintenance tasks. This means the scrub, balance, trim or defragmentation.
Each of the tasks can be turned on/off and configured independently. The default config values were selected to fit the default installation profile with btrfs on the root filesystem.
Overall tuning of the default values should give a good balance between effects of the tasks and low impact of other work on the system. If this does not fit your needs, please adjust the settings.
Tool for managing snapshots, balancing filesystems and upgrading the system safetly.
Backup utility using BTRFS
General system snapshot utility with BTRFS support, used in OpenSUSE Tumbleweed by default. There are also plugins for Fedoras dnf and for Arch pacman.
System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
Currently maintained by LinuxMint, even though they dont use BTRFS by default, it works better there.
- ArchWiki
- Debian Wiki
- thelinuxcode
- linuxconfig
- Mir Rahed Uddin's Guide
- Its FOSS Guide
- [DE] Linuxcommunity Guide
A GTK Snapshot tool for BTRFS
Stable versions:
Development versions:
Used in OpenSUSE microOS and the Desktop variants.
provides an application and library to update a Linux operating system in a transactional way, i.e. the update will be performed in the background while the system continues running as it is. Only if the update was the successful as a whole the system will boot into the new snapshot.
Available as a library for other distros.
Alternatives don't supports customized of snapshot location, (e.g. Arch recommended layout). Adhering to such layouts, and rolling back using them, sometime involve non-obvious workarounds. The motivation for yabsnap was to create a simpler, hackable and customizable snapshot system.
There are 2 separate projects with that name
Set BTRFS snapshots as boot options
Incremental btrfs snapshot backups with push/pull support via SSH
Btrfsd is a lightweight daemon that takes care of all Btrfs filesystems on a Linux system.
It can:
- Check for detected errors and broadcast a warning if any were found, or optionally send an email
- Perform scrub periodically if the system is not on battery
- Optionally schedule balancing operations as well
Tools for deduplicating file systems
Takes a list of files on a btrfs filesystem and measures used compression types and effective compression ratio
Used in flatpak-dedup-checker
sampling disk usage profiler for btrfs For multiple reasons, classic disk usage analyzers such as
ncdu
cannot provide an accurate depiction of actual disk usage. (btrfs compression in particular is challenging to classic analyzers, and special tools must be used to query compressed usage.)
Helps listing directories
A read-only btrfs implementation using FUSE (Filesystem in Userspace). Although btrfs is already in mainline Linux kernel, there are still use-cases for such read-only btrfs implementation:
The btrfs debugger (pronounced "buttered").
btrd is a REPL debugger that helps inspect mounted btrfs filesystems. btrd is particularly useful in exploring on-disk structures and has full knowledge of all on-disk types.
a tool which does in-place conversion of Microsoft's NTFS filesystem to the open-source filesystem Btrfs, much as btrfs-convert does for ext2. The original image is saved as a reflink copy at image/ntfs.img, and if you want to keep the conversion you can delete this to free up space.
Consists of a Windows and a Linux executable. Does not work on the primary drive.
filesystem driver for Windows
- KDE-Partitionamanger
- GNOME-Disks
- blivet-gui (Fedora Anaconda setup)
- gparted ?
fdisk
,parted
(for partitions)cryptsetup
for LUKS containersmkfs.btrfs
to create a BTRFS partitionbtrfs
to create volumes
example
# encrypt a partition
cryptsetup luksFormat -y -c aes-xts-plain64 -s 512 /dev/DEVICE2
cryptsetup luksOpen /dev/DEVICE2 luksdev
# make BTRFS filesystem
mkfs.btrfs -L Gentoo /dev/mapper/luksdev
# mount
mount /dev/mapper/luksdev /mnt/gentoo
# subvolumes
btrfs subvolume create /mnt/gentoo/root
btrfs subvolume create /mnt/gentoo/usr
btrfs subvolume create /mnt/gentoo/etc
btrfs subvolume create /mnt/gentoo/snapshots
btrfs subvolume create /mnt/gentoo/var
btrfs subvolume create /mnt/gentoo/var/tmp
chmod 1777 /mnt/gentoo//var/tmp
btrfs subvolume create /mnt/gentoo/home
# list subvolumes
btrfs subvolume list /mnt/gentoo
When having deleted or corrupted data on a BTRFS partition, these tools can help:
not tested are marked with "?"
- photorec?
Freeware, not FOSS.
Not related to R and "R-Studio" is also not related to RStudio
These allow you to do BTRFS actions in many programming languages