Repository navigation
api | web | docs: back up Redis to S3 on a schedule - #7
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
<name>-s3-backupCronJob. It dumps pod 0 (the primary in standalone and replication mode) withredis-cli --rdband checks the dump withredis-check-rdb. It then uploads the dump as a timestamped.rdbfile and deletes the oldest files beyond the retention count. Redis now imports the shared S3 schema, so the backup validation accepts it.databaseTypesWithoutBackupslist is removed.s3_backup_bucket_idno longer say Redis is excluded.Tests: added
TestRedisDefinitionRendersS3Backupsto check the rendered CronJob with backups on and off. UpdatedTestValidateBackupsSupportedandTestEmbeddedDefinitionsSupportsBackupsso Redis now supports backups.