Databasus: Self-Hosted PostgreSQL Backups with Point-in-Time Recovery and Real Restore Tests
Databasus (formerly Postgresus) is an Apache-2.0 web app for scheduled PostgreSQL, MySQL, MariaDB and MongoDB backups, with PITR for PostgreSQL 17+, encryption, GFS retention and real restore verification. Here is how to run v3.73 with Docker Compose.
Yesterday we looked at Zerobyte, a web UI for file-level Restic backups. That covers your volumes and folders. But there is one thing you should not simply copy at file level while it is running: the database. A Postgres data directory snapshotted mid-write is a gamble, and a pg_dump in a cron job that nobody has restored in a year is not much better.
Databasus is built for exactly this gap. It is a self-hosted web app that connects to your databases, dumps or streams them on a schedule, ships the result to the storage of your choice, and, if you want, proves that the backup can actually be restored. The project (you may still know it under its old name Postgresus) sits at roughly 9,300 GitHub stars and shipped v3.73.0 with PostgreSQL 19 support on 25 November 2026, followed by the bugfix release v3.73.1 on 26 November. Reason enough for a closer look.
What is Databasus?
Databasus started out as a PostgreSQL backup tool and is still focused on Postgres, but it now handles other engines too. Everything is configured in a browser: you add a database, pick a schedule, a storage target, a retention policy and notification channels, and Databasus takes care of the rest.
The basics, checked against the repository and docs today:
- License: Apache License 2.0 for the code. A separate
NOTICE.mdmakes clear that the name and logo are trademarks and are not covered by that license, so forks cannot ship under the Databasus brand. - Image:
databasus/databasuson Docker Hub, mirrored asghcr.io/databasus/databasus, built forlinux/amd64andlinux/arm64. - Port: the web UI listens on 4005.
- Data: everything lives in one volume mounted at
/databasus-data. - Current version: v3.73.1 (26 November 2026).
Key features
Backup types. For PostgreSQL there are two families:
- Logical backups, a compressed dump in the engine's native format. Supported for PostgreSQL 12 to 19, MySQL 5.7/8.0/8.4/9 (plus the version the README lists as "26"), MariaDB 5.5 to 13 and MongoDB 4.2 to 9.
- Physical backups for PostgreSQL 17 to 19: full and incremental base backups plus continuous WAL streaming, which gives you point-in-time recovery (PITR). According to the FAQ this runs remotely from the Databasus host over the PostgreSQL replication protocol, using
pg_basebackup --incrementalandpg_receivewal, so nothing has to be installed on the database server. Restores usepg_combinebackupand WAL replay up to the moment you choose. The README also mentions support for timeline switches in Patroni and CloudNativePG clusters.
Scheduling and retention. Hourly, daily, weekly, monthly or cron schedules at a fixed time of day. Retention can be a time period, a fixed count, layered GFS (grandfather-father-son: hourly, daily, weekly, monthly, yearly) or size caps per backup and in total.

Storage targets. Local disk, S3 and S3-compatible storage (Cloudflare R2 and others), Azure Blob Storage, FTP, SFTP, NAS shares and more; the website keeps the full list.
Notifications. Email, Telegram, Slack, Discord, Microsoft Teams, Mattermost and generic webhooks, for success and/or failure.
Restore verification. This is the feature that sets Databasus apart from a dump script. A small verification agent (a Go binary you run on any machine with Docker) picks up jobs, restores the latest backup into a throwaway database container, compares the result with the source, reports row counts per table and throws the container away again. You can run it after every backup, on a schedule or manually, and get notified only on failures if you prefer.

Security. Backup files can be encrypted with AES-256-GCM, stored secrets are encrypted, Databasus uses (and its setup wizard offers to create) a read-only database user, sign-in supports two-factor authentication via email code or TOTP app, and there is built-in SSH tunnelling for databases that are not directly reachable.
Teams. Workspaces, roles (viewer, member, admin, owner), audit logs and optional log export via OpenTelemetry. Probably overkill for a single homelab, handy if you look after databases for a club or a small company.

Why use it?
If you self-host anything serious, you probably run more than one Postgres. Immich, Paperless-ngx, Listmonk or Gitea all keep their important state in a database. Databasus gives you one place to see whether all of those backups ran, how big they are, where they went and whether they still restore. The UI is genuinely pleasant, there is a dark mode, and the defaults are sensible. And because physical backups and PITR run from the Databasus host, you get pgBackRest-style recovery points without installing anything next to your database.
Install Databasus with Docker Compose
You need a Linux host with Docker and the Compose plugin. The project also offers an install script (it installs Docker if needed and puts Databasus into /opt/databasus), a plain docker run and a Helm chart, but Compose is the most transparent option.
1. Create a directory
mkdir -p ~/databasus && cd ~/databasus
2. Write docker-compose.yml
This mirrors the compose file from the README. I pinned the version instead of using latest, so updates only happen when you decide:
services:
databasus:
container_name: databasus
image: databasus/databasus:v3.73.1
ports:
- "4005:4005"
volumes:
- ./databasus-data:/databasus-data
restart: unless-stopped
healthcheck:
test: ["CMD", "databasus", "healthcheck"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
If Docker Hub rate-limits you, swap the image for ghcr.io/databasus/databasus:v3.73.1.
3. Start it
docker compose up -d
docker compose logs -f databasus
The docs warn that the first start can take up to about two minutes.
4. Create the admin account
Open http://<your-server>:4005 and sign up. The first account becomes the administrator of the instance. Then:
- Click Add database, enter the connection details and test the connection.
- Choose the schedule, storage, encryption and retention policy.
- Add a notifier (email, Telegram, Slack, webhook...) and save.
If your instance is reachable by others, turn off public registration under Databasus settings → Allow sign up once your account exists.
5. Back up Databasus itself and save the master key
Two steps the README stresses, and I agree: enable Databasus settings → Databasus backups so it saves an encrypted copy of its own internal database every hour to a storage of your choice (preferably not the same disk). And download the master key when asked; it also lives in ./databasus-data/secret.key. Without it, neither the internal backups nor your database backups can be decrypted. Put it in your password manager, e.g. Vaultwarden.
Configuration tips
- HTTPS: for anything beyond your LAN, put a reverse proxy in front. The docs ship a ready-made Caddy example; the core of the
Caddyfileis just:
backup.example.com {
reverse_proxy databasus:4005
}
In that setup you remove the ports: section from the Databasus service and let Caddy publish 80/443.
- Optional environment variables: none are required. The advanced config page documents SMTP for invitations and password reset (
SMTP_HOST,SMTP_PORT,SMTP_SECURITY,SMTP_USER,SMTP_PASSWORD,SMTP_FROM), Google/GitHub OAuth sign-in (GOOGLE_CLIENT_ID/_SECRET,GITHUB_CLIENT_ID/_SECRET, HTTPS required),PUID/PGIDfor tricky bind mounts and NFS/CIFS shares, andOPEN_TELEMETRY_URLfor log export. - Telemetry: Databasus sends anonymous usage telemetry by default. Add
IS_DISABLE_ANONYMOUS_TELEMETRY=trueunderenvironment:if you do not want that. - Monitoring:
GET /api/v1/system/healthreturns 200 when healthy and 503 with a reason (disk above 95%, background jobs, verification agent liveness and more). It is perfect for Uptime Kuma, but the docs explicitly say not to use it as a container liveness probe. Pair failure notifications with a webhook to ntfy if you want them on your phone. - Use a read-only role: Databasus only needs to read. Give it a dedicated database user rather than your app's owner account.
- Physical backups need PostgreSQL 17+: the incremental mechanism relies on server-side WAL summaries (
summarize_wal = on). On older versions, stick with logical backups. - Lost the admin password?
docker exec -it databasus ./main --new-password="..." --email="admin@example.com"resets it.
Limitations to know about
- PITR is PostgreSQL-only. MySQL, MariaDB and MongoDB get logical backups only.
- Physical backups require PostgreSQL 17 or newer. Many self-hosted apps still ship Postgres 14 to 16 in their compose files.
- Restore verification needs extra infrastructure: a host with Docker that runs the verification agent, plus enough disk for the backup and the restored database. Budget for that before you count on the "Verified" badge.
- No upgrade path from Postgresus. The docs say renaming the image is not enough; you install Databasus next to it with a fresh data folder and recreate databases, storages and notifiers by hand. Similarly, the old agent-based physical backups were removed after v3.42.0.
- Fast release cadence. Several releases per week is great for fixes, but read the changelog before you bump a pinned version.
- Telemetry is opt-out, not opt-in.
- SSO is limited to Google and GitHub OAuth according to the docs; I found no generic OIDC option, so a Pocket ID setup will not plug in directly.
How does it compare?
- A
pg_dumpcron script: free and simple, but you build scheduling, retention, encryption, offsite copies, alerts and restore tests yourself. Databasus is that whole stack with a UI. - pgBackRest, WAL-G, Barman: the established CLI tools for physical PostgreSQL backups and PITR. They are configured in files and usually run on or next to the database host. Databasus wraps PostgreSQL's own native tools in a web UI instead; the project has detailed (naturally not neutral) comparison pages for each of them on its website.
- Zerobyte / Restic: a file-level backup tool. Use it for volumes, configs and media, and let Databasus handle the databases. The two complement each other nicely.
Conclusion
Databasus is the kind of tool I wish I had found earlier: a friendly UI on top of the boring but critical job of database backups, with real restore tests instead of blind trust. For a homelab, the single container with logical backups to S3 or a NAS is already a big upgrade over a forgotten cron job. If you run PostgreSQL 17+, PITR and incremental physical backups are a strong bonus. Pin the version, store the master key safely, turn on its self-backup, and let the verification agent tell you when something would not restore, long before you actually need it. More backup tooling is collected under the Backup tag.
Sources
- databasus/databasus on GitHub (README, LICENSE, NOTICE.md, Dockerfile, website images)
- Databasus releases (v3.73.0, v3.73.1)
- Databasus documentation: Installation
- Databasus documentation: Restore verification
- Databasus documentation: Advanced config
- Databasus FAQ (physical backups and PITR, removal of the backup agent)
- Databasus: supported storages and notifiers