Automated Server Backup & Cloudflare R2 / AWS S3 Sync Script
Automated backup utility that dumps databases, compresses directories with AES-256 encryption, and synchronizes archives to S3/R2 storage with retention pruning.
Verified clean & malware-scanned
Overview & Details
Automate Linux and Windows server backups without expensive proprietary backup agents. This script creates MySQL/PostgreSQL dumps, tars application assets, encrypts with OpenSSL AES-256, and pushes to Cloudflare R2, AWS S3, or Backblaze B2.
### Highlights
- Multi-database support: MySQL, MariaDB, PostgreSQL, and SQLite
- Gzip + OpenSSL AES-256 symmetric client-side encryption
- Automated retention pruning: deletes cloud backups older than N days
- Webhook notification on backup success or failure
Key Features & Capabilities
- Encrypted offsite cloud replication
- Zero egress cost with Cloudflare R2
- Automated cloud lifecycle retention cleanup
- Discord & Slack alerting webhook
Screenshots & Interface
Click image to zoomSystem Requirements & Compatibility
Prerequisites:
Linux (Bash) or Windows (PowerShell) with AWS CLI / Rclone installed.
Tested & Supported Platforms:
Ubuntu, Debian, RHEL, Windows Server
Installation & Usage Instructions
Step-by-step Setup:
Usage Tips:
Safety & Architecture Notes
Never commit AWS/R2 API secret keys to public version control.
Version History & Changelog
Stable production release.
SHA-256 Checksum
Verify package authenticity before opening:
Tool Specifications
- Category:
- Automation
- Platform:
- Cross-platform
- Format:
- ZIP (Bash & PowerShell)
- License:
- MIT License
Related Tools
Automated PowerShell framework to batch provision or offboard Active Directory accounts, mailboxes, and security groups from CSV records.
Ready-to-import n8n workflow JSON that monitors HTTP endpoints and sends rich Discord and Slack webhook alerts during outages.
Scheduled maintenance script that queries WSUS/Microsoft Update, stages security patches, handles reboot flags, and emails HTML completion logs.
Production-tested script to automate routine virtual machine snapshots, enforce rotation policies (keep last N days), and prevent disk storage exhaustion.