Production databases on macOS and Linux
ButlerDB runs your production databases on your Macs and Linux servers and keeps them safe: scheduled backups to disk, S3 and SFTP, automatic test restores so you know they work, restores to any moment, instant branches, users and grants without the SQL, and every server managed from one Mac app over SSH, including the ones it doesn't run.
Full and incremental backups, kept by rules like hourly for a week, daily for a month, monthly for a year and yearly for five. Every backup shows which rules keep it.
After every scheduled full backup, ButlerDB restores it into a throwaway server, recovers it and runs queries against it, so you know the backup works before you need it.
An external drive, any S3-compatible storage (AWS, R2, B2, MinIO) and SFTP to another Mac or a NAS, all at once. Every copy can drive a restore on its own.
Create users, change passwords and give each one read-only, read-write or admin access per database. Every level shows the exact privileges it grants.
Macs and Ubuntu servers, managed over SSH with your own keys and ~/.ssh/config. Add Server can install or update ButlerDB there for you. Group them, name them, and see their health at a glance.
Bring your DBngin databases over with their data and logins. Each one is checked for collation problems first, and only the one being moved is stopped.
Each server gets its own certificate authority, and each database a certificate for the machine's names and addresses, renewed on its own. Turn on Require TLS to refuse unencrypted connections.
New databases share a memory budget sized to the machine, with connection limits to match. Existing ones keep their own settings until you choose to tune them.
Move a database to a newer build of its release line in one step. It's backed up first, and PostgreSQL goes back to the old build on its own if the new one won't start.
Turn on point-in-time recovery for PostgreSQL, MySQL or DocumentDB and restore to just before a bad deploy, not just to last night's backup. The Backups tab shows the window you can reach.
Copy an instance or one database to try a migration against real data. PostgreSQL and DocumentDB branch from right now in seconds, copy-on-write, without stopping the source.
Add PostgreSQL, MySQL, SQL Server, MongoDB, Valkey, ClickHouse and Typesense servers from any host, and Cloudflare D1 accounts, as unmanaged servers: users, grants, databases, imports and exports, directly or through SSH.
Export a database as another engine's dump: PostgreSQL, MySQL or SQLite, any direction. Choose tables, structure or data, and leave out caches, sessions and queues.
With Butler installed, its local databases sit in the sidebar too. Copy to Butler pulls any database down into one of them for development; the source is only read.
Dropping, replacing or stopping anything asks you to type the server and what it affects. Tag servers Production or Staging; Production always asks.
Signed and checksummed builds for macOS and Linux (amd64 and arm64), installed side by side. Installing a new version never touches a running database.
Native incremental backups with pg_basebackup and pg_combinebackup. TLS, lz4/zstd, every contrib module, pgvector and pg_cron. ICU pinned per build.
Hot backups with Percona XtraBackup, which we build for macOS ourselves. Keeps mysqlbinlog and the server tools a production install needs.
The open-source Redis fork, for queues, sessions and caches. Each app gets its own databases and login, and every instance is set up for what it holds.
Search for your apps, from Typesense's official builds. Create search-only or app API keys, see your collections, and back it all up as snapshots.
Analytics, from ClickHouse's official builds. Native full and incremental backups that carry users and grants, managed like the other engines.
The open-source MongoDB-compatible database built on PostgreSQL. Apps connect with any MongoDB driver; backups, point-in-time recovery and branches work like PostgreSQL's.
Point ButlerDB at an app's database file, or a D1 database in your Cloudflare account, and it gets the same schedules, destinations and tested restores. Turn on continuous replication with Litestream to restore a SQLite file to any moment.
ButlerDB holds your production data, so here's exactly what it does on your Mac.
Every database runs as its own launchd job, not as a child of ButlerDB. Updating the app, restarting the daemon or a daemon crash never stops a running database.
Jobs start as root just long enough to set up, then drop permanently to a dedicated _butlerdb account. Data directories owned by anyone else are refused.
The app talks to the daemon over a local socket that only administrators can open. Remote servers, Mac or Linux, are reached over your own SSH, so there's nothing new to expose.
The engine list is signed, and every download is checked against its SHA-256 before it's unpacked. A tampered list or file installs nothing.
Nothing leaves the Mac except the backups you send to your own destinations, and those can be encrypted first, with a recovery key only you hold. Storage secrets stay readable only by the service account and never end up in logs.
Every database server runs in UTC, set on its command line so no config file can change it. Timestamps mean the same thing on every machine.
A restore always creates a new instance next to the original. It never writes over a database you have.
Everything the app does is a butlerdb command, with --json for scripts.
From download to a tested backup in about ten minutes.
Drag ButlerDB into Applications and open it. It asks to add its background service; approve it in System Settings → General → Login Items & Extensions. It shows up there as ButlerDB.
Install an engine from the Engines window, then add a database instance. Coming from DBngin? Import it instead, and keep its data and logins.
Add one or more destinations: a drive, an S3 bucket, or another machine over SFTP. Then set each instance's policy: where its backups go, how often fulls and incrementals run, and the retention rules that decide how long each is kept.
Press Test Restore. ButlerDB restores the newest backup into scratch space, recovers it and queries it. Scheduled fulls are tested automatically after that.
Make sure ssh <host> works from your Mac with a key, logging in as an administrator (on Linux, a member of sudo). Then use Add Server: it offers to install ButlerDB there if it's missing. Hosts from ~/.ssh/config work as-is.
Or install the Linux agent by hand (use arm64 on ARM servers):
curl -fsSLO https://db-downloads.getbutler.dev/linux/butlerdb-latest-linux-amd64.tar.gz
tar xzf butlerdb-latest-linux-amd64.tar.gz
sudo ./butlerdb-*-linux-amd64/systemd/install.sh
sudo fdesetup authrestart skips it.