Open-source, portable, automated backup system for PostgreSQL, files, and folders — with S3-compatible cloud storage support.
Backup Stack is a lightweight, self-hosted backup solution designed to securely back up your PostgreSQL databases, files, and directories to any S3-compatible storage provider. Built for developers, sysadmins, and businesses that want simple, reliable, automated backups without vendor lock-in.
Safe, consistent, automated backups for PostgreSQL. Supports dump-based backups with compression.
Back up any path — configuration files, project directories, uploaded assets, logs, or entire folders. Supports backing up files and directories
Built-in scheduler for:
- Hourly backups
- Daily backups
- Weekly backups
- Custom cron-style schedules
Upload backups to any S3 API, including:
- Amazon S3
- Backblaze B2
- Any S3-compatible endpoint
Stores backup configurations, schedules, history, and job logs in a local SQLite file — no external database required.
Manage everything from a modern web UI:
- Configure backup jobs
- Add storage providers
- Trigger manual backups
- View logs and status
- Fully self-hosted — no third parties, no data sharing
- Portable and lightweight — deploy anywhere
- Database + filesystem backup in one tool
- Zero vendor lock-in thanks to S3 compatibility
- Easy to automate with built-in scheduler
- Minimal setup — configuration is stored locally
- Developers running local or cloud servers
- Small businesses managing important data
- Postgres-backed applications
- Self-hosted projects needing reliable backups
git clone https://github.com/yourname/backup-stack.git
cd backup-stack
vim ./config/config.goUpdate line 46:
B2S3Endpoint: "pls add compatible endpoint",
make buildFinally, run the executable and finish the setup
- No outbound telemetry
- All metadata stays in your environment
- Backup Postgres database to S3
- Back up server directories daily
- Automated scheduled backups for self-hosted services
- Off-site backups using Backblaze B2
- Disaster recovery for small teams
- Lightweight cloud backup for Linux servers
- Incremental/diff backups
- Encryption
- More database support (MySQL, MongoDB)
- Multi-destination backups
- Notifications
- Docker containerization
Contributions, issues, and feature requests are welcome.
MIT License — free for commercial and personal use.
For hosting help or consulting reach out at [email protected]