Skip to content

Open-source, portable, automated backup system for PostgreSQL, files, and folders — with S3-compatible cloud storage support.

License

Notifications You must be signed in to change notification settings

pranjaltimsina/backup-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup Stack

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.

Features

PostgreSQL Backup

Safe, consistent, automated backups for PostgreSQL. Supports dump-based backups with compression.

File & Directory Backup

Back up any path — configuration files, project directories, uploaded assets, logs, or entire folders. Supports backing up files and directories

Automated Scheduling

Built-in scheduler for:

  • Hourly backups
  • Daily backups
  • Weekly backups
  • Custom cron-style schedules

S3-Compatible Storage

Upload backups to any S3 API, including:

  • Amazon S3
  • Backblaze B2
  • Any S3-compatible endpoint

Portable SQLite Metadata Database

Stores backup configurations, schedules, history, and job logs in a local SQLite file — no external database required.

Web Dashboard

Manage everything from a modern web UI:

  • Configure backup jobs
  • Add storage providers
  • Trigger manual backups
  • View logs and status

Why Backup Stack?

  • 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

Ideal for:

  • Developers running local or cloud servers
  • Small businesses managing important data
  • Postgres-backed applications
  • Self-hosted projects needing reliable backups

Installation

git clone https://github.com/yourname/backup-stack.git
cd backup-stack
vim ./config/config.go

Update line 46: B2S3Endpoint: "pls add compatible endpoint",

make build

Finally, run the executable and finish the setup

Security

  • No outbound telemetry
  • All metadata stays in your environment

Use Cases

  • 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

Roadmap

  • Incremental/diff backups
  • Encryption
  • More database support (MySQL, MongoDB)
  • Multi-destination backups
  • Notifications
  • Docker containerization

Contributing

Contributions, issues, and feature requests are welcome.

License

MIT License — free for commercial and personal use.

Contact

For hosting help or consulting reach out at [email protected]

About

Open-source, portable, automated backup system for PostgreSQL, files, and folders — with S3-compatible cloud storage support.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published