🌿db-branch Creates Instant MySQL and PostgreSQL Branches Using ZFS Clones
Your staging database copies just got a lot cheaper
TL;DR
db-branch is a new open-source tool that creates copy-on-write branches of large MySQL and PostgreSQL databases in seconds. It is self-hosted, Apache-2.0 licensed, and built on ZFS clones. Still beta, so pin your versions.
A new open-source tool called db-branch lets you clone a large MySQL or PostgreSQL database in seconds, with nothing actually copied. You create, reset, and discard branches on demand, the same way you'd treat a git branch. Honestly, that's the kind of workflow most teams have wanted for years and never had a clean way to build. If you run staging environments, migration tests, or per-PR database previews, this is the part to pay attention to. Right now those usually mean nightly dumps, slow restores, or a shared staging DB that three teams keep breaking. A copy-on-write branch sidesteps all of that, since only the blocks you change take up new space. The catch: it's built on ZFS clones, so you need ZFS on the host and a self-hosted setup. There's no managed version here. The project is Apache-2.0 licensed and built from scratch as an independent effort. It's in beta and the maintainers say APIs and command-line details may change before 1.0. So it's usable today, but treat it as a sharp tool, not a stable dependency. Pin versions and don't wire it into anything you can't rebuild.
Key Points
db-branch creates a copy-on-write branch of a large database in seconds, with nothing copied up front, which removes the usual dump-and-restore wait for staging environments.
Keep reading — it's free
Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.
Already a member? Sign in
Comments
Be the first to comment