Ripley
Ripley

Reputation: 702

Is it possible to recover data of AWS ElastiCache (redis) without creating extra cluster?

I didn't find an option to recover a Redis cluster to a previous time point.

All I can do is to seed a new cluster from the backup snapshot then remove the original cluster. Problem is the connection point information changes as well and I have to update any other resource to pick up the new configuration.

Upvotes: 1

Views: 2641

Answers (1)

Sripathi Krishnan
Sripathi Krishnan

Reputation: 31528

As far as I know, AWS doesn't offer a way to do this. You can do this manually using some open source tools.

  1. Export your back to S3. This will create a .rdb file
  2. Download the .rdb file to an ec2 instance
  3. Then use one of the open source tools to parse the rdb file and insert the data into the existing elasticache redis

Two open source tools that will help you do this -

  1. https://github.com/leonchen83/redis-cli-tool, see the redis-mass-insertion section
  2. https://github.com/sripathikrishnan/redis-rdb-tools - see the --protocol command (disclaimer: I am the author of this tool).

These tools will also help you to restore only a portion of the data if you so desire.

Upvotes: 4

Related Questions