Skip to main content

Scheduled backups for PostgreSQL and MySQL

EnVault is a free, self-hosted tool for backing up PostgreSQL and MySQL, with scheduled backups in your own Cloudflare R2 bucket. It brings that real data into your development and QA databases without risking production.

EnVault Management dashboard showing the success rate, this week’s backups, how long each backup took, and the latest restore

Sample data

Backups that just work, without the babysitting

No more scripts to babysit or manual checklists before every restore. EnVault handles your database backups from start to finish, so nothing gets lost.

SPDX: FSL-1.1-ALv2internal_use
FSL-1.1→ Apache 2.0 (2 yrs)
Free to use & modify. No competing SaaS.

Fair Source (FSL-1.1)

Free for internal use in companies and startups of any size. No competing commercial offerings, transitioning to Apache 2.0 two years after release.

sse_streamlive
event: dump.progress100%

Watch every restore happen live

See exactly what's happening while a restore runs, right in your browser via real-time SSE events. No refreshing the page or wondering if it's still working.

audit_ledgerappend_only
POST /dumps/execadmin@corp
POST /restores/dry-rundev@corp
PATCH /retentionimmutable

A record nobody can quietly change

Every backup, download, setting change, and restore gets logged automatically. That record cannot be edited or deleted afterward, not even by an administrator.

Backups on autopilot, even if you scale up

Set the schedule you want, hourly, daily, weekly, or custom cron, and forget about it. Distributed locking ensures only one server performs the dump even in multi-instance setups.

Your backups live safely in the cloud

Every backup streams straight to Cloudflare R2 or S3-compatible storage. Nothing sits on a local disk where it could get lost, and old backups clean themselves up according to your retention rules.

cost_simulatorzero_egress
Database size25 GB / dump
Retention period30 days
Active snapshots30 dumps (750 GB)
R2 Egress fee per restore$0.00 (0 egress)
R2 monthly storage~$11.25 / mo
In AWS S3, restoring this dump costs ~$2.25 extra per download. In R2 it is always $0.

How to back up PostgreSQL and MySQL

EnVault automates your backup lifecycle in 4 straightforward steps. Register your credentials, set your schedule, and restore into safe environments with schema simulation.

Step 1

Register your database

Provide connection credentials for your PostgreSQL or MySQL database and assign its environment. Production (PROD) connections remain immutable and read-only to prevent accidental overrides.

Add database for backupConnection verified
PostgreSQLPostgreSQL
MySQLMySQL
prod-customer-db
PRODImmutable
db.internal.production.net
5432
28 ms latency
Step 2

Schedule automatic backups

Choose the timing that fits your traffic, daily at off-peak hours, weekly, or with a custom cron expression. Distributed locking guarantees only one worker runs the backup at a time.

Schedule periodic backupBullMQ Distributed
prod-customer-dbPROD
Daily (every night)
02:00 UTC
Active Schedule

Runs every night at 02:00 UTC. Distributed lock prevents duplicate executions across multiple API nodes.

Step 3

Direct storage to Cloudflare R2

Dumps stream directly to your Cloudflare R2 or S3-compatible bucket via multipart upload. Nothing is written to EnVault’s local disk, and aging files purge automatically according to your retention policy.

CloudflareCloudflare R2 Bucket
0 bytes disk write
Postgrespg_dump stdout
TLS 1.3 stream
R2R2 Multipart
prod-customer-db-2026-10-29T02-00-00.dump
Completed
Size142.7 MB
Retention30 days
Auto-purgeActive
Step 4

Restore to Dev or QA with Dry Run

Never restore blindly. Dry Run compares source and target schemas, highlights row differences, lets you exclude tables, and blocks direct writes to production.

Safe restore simulation (Dry Run)PROD Guard Active
Source snapshotprod-customer-db
PROD
Target databasedev-staging-db
DEV
TableSource rowsDiff
users45,210+13,110
orders128,940+33,940
audit_logs850,200Excluded
Production overwrite blocked

How to install?

Deploy EnVault in minutes on your own infrastructure, locally or in the cloud. Full sovereignty over your database assets.

Linux (Ubuntu, Debian, Arch, CentOS)

Download the official compose stack and start all containers in the background with Docker Engine.

sudo apt-get install -y curl
sudo curl -fSL https://raw.githubusercontent.com/Aisaac2205/envault/main/docker-compose.yml -o docker-compose.yml
sudo docker compose up -d

Start backing up your databases the easy way

Run it wherever you want, your own servers, your cloud, or a managed platform. It works with PostgreSQL and MySQL, and your data never has to leave your infrastructure.