Databasus: Open Source Solution for Automated Backups of PostgreSQL, MySQL, MongoDB
Databasus provides automated backups for PostgreSQL (primary focus), MySQL, MariaDB, and MongoDB. One-command Docker deployment with support for local storage, S3, Cloudflare R2, Google Drive, Azure Blob, NAS, SFTP, and rclone. Notifications via Slack, Discord, Telegram, MS Teams, email, and webhooks. Data encryption, audit logs, project and access management.
Supports self-hosted and cloud databases, logical/physical/incremental backups with WAL streaming for PITR. Two modes: remote (direct connection) and agent-based (stream from the DB server).
Deployment Methods
Four installation options for different environments.
Shell Script
Automatic Docker installation and launch:
sudo apt-get install -y curl && \
sudo curl -sSL https://raw.githubusercontent.com/databasus/databasus/refs/heads/main/install-databasus.sh | sudo bash
Docker Compose
File docker-compose.yml:
services:
databasus:
container_name: databasus
image: databasus/databasus:latest
ports:
- "4005:4005"
volumes:
- ./databasus-data:/databasus-data
restart: unless-stopped
Run: docker compose up -d.
Docker run
docker run -d \
--name databasus \
-p 4005:4005 \
-v ./databasus-data:/databasus-data \
--restart unless-stopped \
databasus/databasus:latest
Kubernetes Helm
helm install databasus oci://ghcr.io/databasus/charts/databasus \
-n databasus --create-namespace
kubectl port-forward svc/databasus-service 4005:4005 -n databasus
Access via http://localhost:4005 in all cases.
Key Features
- Databases: PostgreSQL (PITR with WAL), MySQL/MariaDB, MongoDB.
- Storage: local, S3/R2, Google Drive, Azure Blob, NAS, SFTP, rclone.
- Notifications: Slack, Discord, Telegram, Teams, email, webhook.
- Security: backup and secret encryption, audit logs, RBAC by project.
- Modes: remote for open databases, agent-based for isolated ones.
- Backup Types: logical, physical, incremental.
The interface supports dark and light themes, with the web UI on port 4005.
Renaming History
The project evolved from Postgresus 2.0, which was focused solely on PostgreSQL. After gaining over 1,000 stars on GitHub and community requests, support for MySQL, MariaDB, and MongoDB was added.
The rename was prompted by:
- Functional expansion beyond PostgreSQL.
- Violation of the "Postgres" trademark — since 2020, its use in names has been prohibited without fair use.
- Risk prevention (e.g., potential loss of Docker Hub pulls in unforeseen circumstances).
PostgreSQL is now tolerant of fair use, but the author opted for the neutral name Databasus for broader applicability.
Key Points
- PITR support via WAL streaming for PostgreSQL.
- Agent-based mode for backing up closed databases without external access.
- Encryption of all sensitive data and backups.
- Multi-tenancy: projects, users, audit.
- Quick deployment in Docker/K8s with no dependencies.
— Editorial Team
No comments yet.