Question: How do I backup data in Redis Enterprise?
Answer
Redis Enterprise provides a few ways to back up your data, including manual backups, scheduled backups, and backup to specific locations (local or cloud storage).
Here's an example of how to perform a manual backup using the Redis Enterprise UI:
- Navigate to the database that you want to backup in the Redis Enterprise UI.
- Select the "configuration" tab.
- Scroll down to the "Persistence" section.
- Under the "Backup" section, click on the "Backup now" button.
You can also schedule backups from the same screen:
- In the "Backup" section, select "Scheduled backup settings".
- Choose your preferred backup interval (for example, every 24 hours).
- Specify the location to store the backup. It can be a local path on the server or an AWS S3 bucket, an OpenStack Object Storage ("Swift") location, or a Google Cloud Storage bucket.
To specify an S3 bucket as the backup destination, for example:
aws-endpoint: s3.amazonaws.com bucket: name-of-your-bucket access-key: your-access-key secret-key: your-secret-key
Note that encryption is recommended for sensitive data when backing up to a public cloud.
For restoring data from backup:
- Navigate to the database you wish to restore in the Redis Enterprise UI.
- Select the "configuration" tab.
- Scroll down to the "Data persistence" section.
- Click on the "Restore from backup" button.
- Specify the backup file's location.
It's worth noting that during the restoration process, all current data in the database will be deleted and replaced with the data in the backup file.
Please refer to the official Redis documentation for Backup, Import, and Export for more information.
Was this content helpful?
Other Common Redis Questions (and Answers)
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost