Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS

The 30-Second Skim
- What happened: db-branch, an Apache-2.0 open-source tool, gives teams disposable MySQL and PostgreSQL copies on their own ZFS servers in seconds, letting AI agents and pull requests run against production-shaped data without touching production.
- Key facts & numbers: db-branch is an independent, self-hosted open-source project in beta, with an Apache-2.0 core that creates, resets and discards database branches on your own Ubuntu 24.04 LTS or 26.04 LTS server with a ZFS pool — and there is no hosted or cloud version. ZFS clones power the copy-on-write branching: on the project's own 3-node test cluster a PostgreSQL branch was ready in about 0.5 s and a MySQL branch in about 3 s, with 0 bytes copied at creation. MCP support is built in, letting an LLM agent create a branch, run a risky query or migration on it and delete the branch, so production data is never touched.
- What happens next: Buried detail: an MCP server lets agents spin up a disposable DB copy and nuke it — plus checkpoint-and-rollback on failed version upgrades.
- db-branch is an independent, self-hosted open-source project in beta, with an Apache-2.0 core that creates, resets and discards database branches on your own Ubuntu 24.04 LTS or 26.04 LTS server with a ZFS pool — and there is no hosted or cloud version.
- ZFS clones power the copy-on-write branching: on the project's own 3-node test cluster a PostgreSQL branch was ready in about 0.5 s and a MySQL branch in about 3 s, with 0 bytes copied at creation.
- MCP support is built in, letting an LLM agent create a branch, run a risky query or migration on it and delete the branch, so production data is never touched.
- branch upgrade --check-only previews a major-version upgrade — the docs use MySQL 8.0 to 8.4 as the example — while a real per-branch upgrade saves a checkpoint first and rolls back by itself if the upgrade fails.
Why It Matters
For teams running AI agents and CI against real MySQL or PostgreSQL datasets, branches ready in about 0.5 s and 3 s with 0 bytes copied turn "give each pull request its own database" into a sub-minute operation. The split between an Apache-2.0 core and closed-source paid modules for auth/SSO, audit and history keeps governance features behind a license key.
Sources Cited
Related Coverage
Ask SkimNews