oddk and other Postgres tools
Backup tools and oddk solve different problems. Databasus, pgBackRest, WAL-G and Barman back up databases you already run. oddk runs them: it creates Postgres instances on one Linux host, sizes and tunes them, manages their users and upgrades, watches their health, and captures the whole deployment in one archive.
The facts about other tools below are from their own documentation as of October 2026, linked in each section. Check there before relying on a detail.
Which do you need?
- Your Postgres already exists, on a server or a managed service such as RDS or Cloud SQL. A backup tool. oddk runs only the instances it created.
- You need point-in-time recovery. A backup tool that archives or streams WAL. oddk has none: you can restore to the last snapshot, and snapshots run at most once an hour.
- You need failover or replicas. A cluster manager such as Pigsty or Autobase, both built on Patroni. oddk runs standalone instances on one host.
- You back up MySQL, MariaDB or MongoDB as well. Databasus, or WAL-G for MySQL and MariaDB. oddk runs only PostgreSQL.
- You want to create and run Postgres on a Linux host you own or rent, and rebuild that host from one archive and one key. oddk.
Side by side
| oddk | Databasus | pgBackRest, WAL-G, Barman | |
|---|---|---|---|
| What it does | Runs Postgres instances on one host | Backs up existing databases | Back up and restore an existing Postgres server |
| Creates, sizes and tunes instances | Yes | No | No |
| Database users, major upgrades | Yes | No 1 | No |
Logical backups (pg_dump) | Yes, with --logical | Yes | No |
| Physical backups | Yes, the default | PostgreSQL 17+ | Yes |
| Incremental backups | No; every snapshot is complete | PostgreSQL 17+ | Yes |
| Point-in-time recovery | No | PostgreSQL 17+ | Yes |
| Encrypted archives | Always: age, post-quantum hybrid 2 | AES-256-GCM | Optional 3 |
| Offsite storage | S3 and S3-compatible | S3, R2, Google Drive, Azure Blob, NAS, FTP, SFTP, rclone | S3, Azure, Google Cloud Storage and others 4 |
| Rebuild a lost host | Yes: one archive and the master key restore every instance and oddk’s configuration | Restores databases; the server is yours to rebuild | Restores the cluster; the server and its Postgres installation are yours to rebuild |
| Other databases | No | MySQL, MariaDB, MongoDB (logical) | WAL-G: MySQL, MariaDB, SQL Server |
| Interface | CLI, plus an API on the host’s loopback | Web UI with workspaces, roles and an audit log | CLI |
| Licence | MIT | Apache 2.0 | MIT, Apache 2.0, GPL 3 |
Where each one is stronger
Databasus restores each backup into a temporary database container and checks the result, after every backup or on a schedule. oddk reads every archive back in full when it is written and again before a restore, and checks catalogued archives against their recorded SHA-256, but does not restore them to prove it. Databasus also has a web UI for a team, backs up databases on managed services and behind SSH tunnels, and covers MySQL, MariaDB and MongoDB.
pgBackRest, WAL-G and Barman archive WAL continuously, so you can restore to a
moment rather than to the last backup. They take incremental backups and work
with an existing Postgres installation, however it was set up.
They need the server’s archive_command, a replication connection or access to its
data directory, so they are set up on or next to the database server.
oddk does the part those tools assume is already done: it creates and runs the instances. A snapshot captures every instance’s data together with oddk’s own configuration in one encrypted archive, so a host that is gone comes back with one command and its master key, with its instances, ports, parameter groups and passwords, and its schedules paused until you resume them. It restores one instance, or one database as a new database, while everything else keeps serving. It checks instance and host health and sends a message when an instance degrades or a scheduled run fails. It is one binary that needs only Docker and systemd.
Using a backup tool with oddk
A logical backup tool can back up an oddk instance like any other Postgres server. It gives you a second, independent copy on its own schedule, with the tool’s own encryption, storage and restore tests.
Get the instance’s connection string:
oddk instance get-postgres-password app --conn
# postgresql://postgres:…@10.88.0.1:5432/postgres10.88.0.1 is host-local. A tool on the same host connects to it directly, from
the host or from a container on Docker’s default network. A tool on another
machine needs an SSH tunnel to the host; Databasus has one built in.
Choose the user carefully. A dump is complete only if its user can read every object:
oddk instance add-db-user app --username backup --database app --readonlygrants read access to thepublicschema’s current tables and sequences, and to tables created later. A new schema or a new sequence, such as one from aserialcolumn, makes the next dump fail.- PostgreSQL’s
pg_read_all_datarole (PostgreSQL 14 and later) covers every schema and sequence, but not large objects or tables with row-level security. - The
postgresuser can read everything.
Whatever the user, a restore test finds out that a dump is incomplete.
Physical backups and point-in-time recovery from outside do not work against an
oddk instance as installed. Its pg_hba.conf accepts replication connections only
from inside the container, and oddk does not set an archive_command.
What oddk is not
- Not highly available. No failover, no streaming replicas, no quorum. It runs standalone instances.
- Not multi-tenant. It assumes a single trusted operator on a single host. Anyone with the API token has full control.
- Not internet-facing. The API binds to
127.0.0.1and Postgres to a host-local Docker bridge. Reach them over an SSH tunnel. - Not a Postgres fork, driver or connection pooler. It runs the official
PostgreSQL images and compatible ones such as
pgvectorandpostgis. - Not a Kubernetes operator. It talks to Docker directly.
Databasus can create a read-only database user for its own backups. ↩︎
ML-KEM-768 + X25519, with the key derived from oddk’s master key. There is no setting to turn it off and no second key to manage. Without the master key, no archive can be restored or read; see Encrypted at rest. ↩︎
pgBackRest: AES-256-CBC. WAL-G: libsodium, OpenPGP or Yandex Cloud KMS. Barman: GPG. Off by default in all three. ↩︎
pgBackRest: S3, Azure, Google Cloud Storage, SFTP, POSIX and CIFS paths. WAL-G: S3, Google Cloud Storage, Azure, Swift, Alibaba Cloud, SSH. Barman: its own server’s disk, or S3, Azure and Google Cloud Storage through
barman-cloud. ↩︎