r/linuxadmin • • 3d ago

diffstream-tools is a new open-source set of C++17 utilities for incremental block replication with Changed-Block Tracking (CBT) and migration across mismatched Linux storage backends

Instead of being locked into homogeneous replication, e.g., zfs send to zfs receive, btrfs send to btrfs receive or inflating thin-provisioned disks with dd/rsync, all four tools speak the same binary wire protocol. Any source can pipe directly into any target over zstd and ssh:

zfsdiffstream: Handles ZFS ZVOLs & dataset files by parsing zfs send output

thindiffstream: Handles LVM-Thin volumes & snapshots via thin_delta

diffstream: Handles sparse filesystem-backed storage on XFS & Btrfs via reflink files and snapshots using FS_IOC_FIEMAP + FALLOC_FL_PUNCH_HOLE

blkstream: Allows raw block device bootstrapping with zero-block skipping

Each tool is a single .cpp file with zero external dependencies beyond libc and kernel headers, so they can be compiled on the fly in a rescue ISO or built into a .deb.

(Note: The repo is brand new and tools write raw block extents in place like dd, so it should definitely be tested on CoW snapshots first.)

Repo is ghakrac/diffstream-tools on GitHub.

Curious how folks here currently handle cross-filesystem and cross-storage migrations or thin-provisioned backups?

1 Upvotes

1 comment sorted by