dcalsky 16 hours ago

Inspired by eeshugerman/postgres-backup-s3, I've created a Docker-based solution for automated PostgreSQL backups to Cloudflare R2 storage. This project provides a simple way to schedule regular backups of your PostgreSQL databases and store them securely in Cloudflare R2, with optional encryption.

Key features: Simple configuration: Just set environment variables and you're good to go Flexible scheduling: Supports various backup frequencies (@yearly, @monthly, @weekly, @daily, @hourly, or custom intervals) Multi-version support: Works with PostgreSQL 12, 13, 14, 15, 16, and 17 Encryption: Optional GPG encryption for sensitive data Retention policies: Automatically clean up old backups based on configurable retention periods Easy restoration: Simple commands to restore from the latest backup or a specific backup Multi-architecture: Supports both amd64 and arm64 platforms Why Cloudflare R2? Cloudflare R2 offers S3-compatible object storage without egress fees, making it a cost-effective solution for database backups. This project makes it easy to leverage R2 for your PostgreSQL backup needs.

The project is open source and available on GitHub: https://github.com/dcalsky/postgres-backup-r2

I'd love to hear your feedback and suggestions for improvements! Reach at https://x.com/kokodayoxie