Skip to content

Comments

Add R2 backup system for database and images#21

Merged
louije merged 2 commits intomainfrom
claude/add-r2-backups-rD0e4
Dec 28, 2025
Merged

Add R2 backup system for database and images#21
louije merged 2 commits intomainfrom
claude/add-r2-backups-rD0e4

Conversation

@louije
Copy link
Owner

@louije louije commented Dec 28, 2025

Implements cloud backup to Cloudflare R2 with tiered retention:

  • Daily backups: kept for 7 days
  • Weekly backups (Sundays): kept for 12 weeks
  • Monthly backups (1st of month): kept for 12 months

Key features:

  • Images synced incrementally using rclone (no duplicates)
  • Database compressed with gzip before upload
  • Easy restore script with integrity checks
  • Setup script for rclone configuration
  • Systemd timer runs daily at 3 AM

Implements cloud backup to Cloudflare R2 with tiered retention:
- Daily backups: kept for 7 days
- Weekly backups (Sundays): kept for 12 weeks
- Monthly backups (1st of month): kept for 12 months

Key features:
- Images synced incrementally using rclone (no duplicates)
- Database compressed with gzip before upload
- Easy restore script with integrity checks
- Setup script for rclone configuration
- Systemd timer runs daily at 3 AM
- Scripts now read R2_BUCKET from /srv/dogbook/data/.env
- Setup script prompts for bucket name during configuration
- Added R2_BUCKET to .env.production.example
@netlify
Copy link

netlify bot commented Dec 28, 2025

Deploy Preview for maisonsdoggo canceled.

Name Link
🔨 Latest commit bd5278c
🔍 Latest deploy log https://app.netlify.com/projects/maisonsdoggo/deploys/695142764f4fe70008dca234

@louije louije merged commit 639e143 into main Dec 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants