
db-branch
Instant MySQL and PostgreSQL database branches on ZFS clones
Developer ToolsOpen sourceOpen source · verified#databases#devops#testing
Listed by the ProductPerch team from Hacker News · not launched here yet
What is db-branch?
db-branch creates instant, copy-on-write branches of large MySQL and PostgreSQL databases using ZFS clones. It runs entirely on your own servers and requires Linux with ZFS support. The tool allows developers to duplicate a database in seconds without copying data, making it safe to test changes, reset states, or discard branches when finished.
The project includes a command-line interface, an API, and a web console for management. It also features a built-in Model Context Protocol (MCP) server that enables AI agents to create isolated database branches, run risky queries or migrations, and delete them automatically. This keeps production data completely separate from testing environments.
Currently in beta, db-branch is self-hosted and licensed under Apache-2.0. Setup can be done quickly using tools like Multipass to spin up an Ubuntu VM with a file-backed ZFS pool. The repository provides documentation, examples, and scripts to help users get started.
db-branch features
- Instant copy-on-write database branches using ZFS clones
- Supports MySQL and PostgreSQL databases
- Built-in MCP server for AI agent integration
- Command-line interface and REST API
- Web-based management console
- Self-hosted on Linux with ZFS support
- Automatic branch expiration and cleanup via TTL
Who uses db-branch and for what
- Run AI language models on isolated database copies without risking production data
- Provide each CI pipeline or pull request with its own fresh database instance
- Test major database version upgrades safely before applying them to production
- Allow developers to experiment with schema changes or complex queries in a disposable environment
- Quickly clone large datasets for performance testing or debugging
db-branch FAQ
Is db-branch free?
Yes, db-branch is open source under the Apache-2.0 license. The website notes that some paid modules are available and run for 30 days without a key, but the core project is free to use.
Is db-branch open source?
Yes, the project is publicly hosted on GitHub under the Apache-2.0 license and is fully open source.
What is db-branch used for?
It is used to create instant, copy-on-write branches of MySQL and PostgreSQL databases for testing migrations, running AI agent queries, isolating pull requests, and checking version upgrades without touching production data.
Does db-branch work on Mac?
The website does not say. The product requires Linux and ZFS, so it must be run on a Linux system or inside a Linux virtual machine.
How do I install db-branch?
You can install it on your own Ubuntu server or run it in a Linux virtual machine using tools like Multipass. The repository includes setup scripts, documentation, and a live browser demo to try the interface without installation.
Comments (0)
Comments and upvotes open when this product launches on ProductPerch.
More Developer Tools launches
Monitor Laravel scheduled tasks and queues
Convert Cursor rules to AGENTS.md in the browser. No upload.

Feel iOS haptic patterns on a real iPhone, copy the code
Deploy anywhere from your AI tool.
Python code quality analyzer for developers
eBay listing data for apps and agents