|
|
bdf9af0650
|
feat: v2.0 Sprint 3 - Cloud URI Support & Command Integration (Part 1)
Sprint 3 Implementation - Cloud URI Support:
New Features:
✅ Cloud URI parser (s3://bucket/path)
✅ Backup command with --cloud URI flag
✅ Restore from cloud URIs
✅ Verify cloud backups
✅ Cleanup cloud storage with retention policy
New Files:
- internal/cloud/uri.go - Cloud URI parser
- internal/restore/ - Cloud download module
- internal/restore/cloud_download.go - Download & verify helper
Modified Commands:
- cmd/backup.go - Added --cloud s3://bucket/path flag
- cmd/restore.go - Auto-detect & download from cloud URIs
- cmd/verify.go - Verify backups from cloud storage
- cmd/cleanup.go - Apply retention policy to cloud storage
URI Support:
- s3://bucket/path/file.dump - AWS S3
- minio://bucket/path/file.dump - MinIO
- b2://bucket/path/file.dump - Backblaze B2
- gs://bucket/path/file.dump - Google Cloud Storage
Examples:
# Backup with cloud URI
dbbackup backup single mydb --cloud s3://my-bucket/backups/
# Restore from cloud
dbbackup restore single s3://my-bucket/backups/mydb.dump --confirm
# Verify cloud backup
dbbackup verify-backup s3://my-bucket/backups/mydb.dump
# Cleanup old cloud backups
dbbackup cleanup s3://my-bucket/backups/ --retention-days 30
Features:
- Automatic download to temp directory
- SHA-256 verification after download
- Automatic temp file cleanup
- Progress tracking for downloads
- Metadata synchronization
- Retention policy for cloud storage
Sprint 3 Part 1 COMPLETE!
|
2025-11-25 20:30:28 +00:00 |
|