
db-branch
Database branches you run on your own servers
At a glance
Db-branch creates copy-on-write branches of MySQL and PostgreSQL databases on your own Linux servers.
- Pricing
- Open source
- Platforms
- Linux, CLI, API, Web
- Category
- Developer Tools
- Website
- db-branch.com
- Last checked

What it does
Db-branch is a self-hosted tool that creates branches of MySQL and PostgreSQL databases. A branch is a copy-on-write clone of a loaded base, so creating one copies no data. Engineers use it to test a migration or to let an AI agent work on its own copy of the data.
Each branch runs its own database server on its own port. Optional ProxySQL routing sends client connections to the right branch by user name, so applications can keep one address.
How it works
- Install the package on Ubuntu 24.04 or 26.04 LTS with a ZFS pool available.
- Load your data once into a base from a dump file.
- Create a branch from that base, with an optional time to live such as 72 hours.
- Save a checkpoint before a risky change, then restore it, reset the branch, or delete it.
What makes it different
Branches are ZFS clones, so a new branch copies nothing at creation. Per-branch upgrades let you move one branch to a newer MySQL or PostgreSQL version while the base and the other branches stay as they are. A checkpoint is saved first, and a failed upgrade rolls back on its own.
Good to know
- The project is in beta, and APIs and command-line details may still change before version 1.0.
- It runs only on Linux with ZFS, so Mac and Windows users need a virtual machine to try it.
- Paid modules for sign-in, audit, and history need a license key.
Who it's for
Engineers who run self-hosted MySQL or PostgreSQL on Linux and ZFS
Typical uses
- Test a migration on a copy before touching the base database
- Give each pull request or CI run its own database copy
- Let an AI agent work on a branch instead of production data
Features
- Creates copy-on-write branches of MySQL and PostgreSQL
- Resets, checkpoints, and restores branches
- Deletes branches automatically with a time to live
- Upgrades one branch to a newer database version
- Offers a CLI, REST API, web console, and MCP server
- Runs on a single node or as a Raft cluster
Pricing
Open source
The core is free and open source under Apache-2.0. Paid modules need a license key, available monthly or yearly. See the product's website for current plans and pricing.
Limitations
- The project is in beta, and APIs may change before version 1.0
- Runs only on Linux with ZFS, so Mac and Windows need a virtual machine
- Self-hosted only, with no hosted or cloud version
FAQ
Is db-branch free to use?
The core is open source under the Apache-2.0 license. Paid modules for sign-in, audit, history, diff, and FSx storage need a license key.
Which databases and operating systems does db-branch support?
It supports MySQL and PostgreSQL and needs Ubuntu 24.04 or 26.04 LTS with a ZFS pool.
Is there a hosted version of db-branch?
No. There is no hosted or cloud version, so you run db-branch on your own servers.