db-branch: Instant database branches for AI agents and CI via ZFS
·2026.11.15 22:50
Key point
The Apache-2.0 tool creates copy-on-write branches for MySQL and PostgreSQL in seconds, supporting AI agent sandboxes and CI workflows.
Details
- db-branch is a self-hosted, open-source tool (Apache-2.0) that creates instant copy-on-write database branches for MySQL and PostgreSQL using ZFS clones.
- On a 3-node test cluster, PostgreSQL branches are ready in about 0.5 seconds and MySQL branches in about 3 seconds, with 0 bytes copied at creation.
- The tool includes a built-in MCP server that allows LLM agents to create, query, and delete branches, enabling safe execution of risky queries or migrations without touching production data.
- It supports per-branch version upgrades, checkpoints, and automatic expiration via TTL, with a Raft cluster option for high availability and ProxySQL routing.
- The project is currently in Beta status, meaning APIs and command-line details may change before the 1.0 release; it requires Ubuntu 24.04 or 26.04 LTS and a ZFS pool.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.