Skip to content

api | web | docs: back up Redis to S3 on a schedule - #7

Merged
yekta merged 1 commit into
masterfrom
feat/redis-s3-backups
Oct 14, 2026
Merged

yekta merged 1 commit into
masterfrom
feat/redis-s3-backups

Conversation

@yekta

@yekta yekta commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Redis was the only database without backups, so its data lived on a single volume with no off-site copy. Redis now uses the same backup bucket, schedule and retention settings as the other databases.

Resolves UNB-404.

  • api: When S3 is enabled, the Redis definition renders a <name>-s3-backup CronJob. It dumps pod 0 (the primary in standalone and replication mode) with redis-cli --rdb and checks the dump with redis-check-rdb. It then uploads the dump as a timestamped .rdb file and deletes the oldest files beyond the retention count. Redis now imports the shared S3 schema, so the backup validation accepts it.
  • web: The Backups section shows for every database type, both when creating a database and in its settings. The databaseTypesWithoutBackups list is removed.
  • docs: Explain how to restore an RDB onto the Redis volume. The AOF conversion init container turns it back into an append-only file on start. Also note that the append-only file protects against a crash, not against losing the volume.
  • The OpenAPI and generated client descriptions for s3_backup_bucket_id no longer say Redis is excluded.

Tests: added TestRedisDefinitionRendersS3Backups to check the rendered CronJob with backups on and off. Updated TestValidateBackupsSupported and TestEmbeddedDefinitionsSupportsBackups so Redis now supports backups.

Redis was the only database without backups. It now uses the same bucket, schedule and retention settings as the other databases.

- A CronJob dumps pod 0 (the primary) with `redis-cli --rdb`, checks the dump with redis-check-rdb, uploads it as a timestamped .rdb file and deletes the oldest files past the retention count.
- The web UI shows the Backups section for every database type.
- The docs explain how to restore an RDB onto the volume. The AOF conversion init container turns it back into an append-only file on start.
@yekta
yekta merged commit fb0061a into master Oct 14, 2026
8 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.

1 participant