🐳 Docker Backup Relay

Zero-config automated database backup, gzip compression & encrypted Telegram/S3 dispatch in Docker.
Effortlessly protect PostgreSQL, SQLite, MySQL, and static directories on your VPS or homelab without paying monthly fees for heavy enterprise SaaS backup tools.
⚡ Quick Start in 60 Seconds
Using Docker Compose
version: '3.8'
services:
backup-relay:
image: node:22-alpine
container_name: docker-backup-relay
restart: unless-stopped
ports:
- "8080:8080"
environment:
- TARGET_NAME=Production Database
- BACKUP_DIR=/data/backups
- ENCRYPTION_PASSWORD=my_super_secret_key
# Optional: Add Binance Pay TxID to unlock Pro AES-256-GCM
- LICENSE_KEY=1049392123
volumes:
- ./backups:/data/backups
Run in terminal:
docker compose up -d
Run Locally with Node.js
git clone https://github.com/Shokun123/docker-backup-relay.git
cd docker-backup-relay
npm start
🛠️ Environment Variables & Configuration
| Variable |
Default |
Description |
PORT |
8080 |
Port for HTTP health checks and manual trigger API. |
TARGET_NAME |
Primary Database |
Name of the database/service being protected. |
BACKUP_DIR |
./backups |
Directory where compressed backup files are saved. |
ENCRYPTION_PASSWORD |
"" |
Passphrase for AES-256-GCM hardware encryption. |
LICENSE_KEY |
"" |
Pro License Key or Binance Pay TxID (UID: 1049392123). |
TELEGRAM_BOT_TOKEN |
"" |
Optional Telegram bot token for instant alert dispatches. |
TELEGRAM_CHAT_ID |
"" |
Telegram chat ID to receive backup reports and files. |
📡 Built-In REST API Endpoints
GET /health — Returns system uptime, last backup timestamp, size, and encryption status.
POST /backup/trigger — Manually triggers an immediate backup routine on demand.
💎 Pro Enterprise License & Binance Pay
The Community Edition is free and open-source under the MIT license with automated GZIP compression and local retention.
🌟 Pro Features ($25 USDT Lifetime License):
- Military-Grade AES-256-GCM Encryption: Encrypt dumps before storage or transmission.
- Direct Telegram & Cloudflare R2 / S3 Multi-Cloud Dispatch.
- Automatic Retention Pruning: Automatically purges backups older than 30 days.
How to Activate Pro:
- Send $25 USDT via Binance Pay to:
- Binance UID:
1049392123
- Username:
User-79a91
- Networks: BNB Smart Chain (BEP20) or Polygon Network.
- Set your Binance TxID or Pay ID as
LICENSE_KEY in your docker-compose.yml:environment:
- LICENSE_KEY=1049392123
🌐 The Shokun123 Developer Suite
📄 License
Distributed under the MIT License. Free for open-source and individual developers.
评论