Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Redis Instance was Recreated

My Redis database hit the memory limit yesterday and it created the new instance which flushed out the previous data. I checked for the backup but there is no RDB file in my storage. Is there any way I can get the old data back? I also want to keep the new data added in the new Redis instance.

0 1 84
1 REPLY 1

Hi @Deepak_Tiwari

Welcome to Google Cloud Community!

Once data has been flushed out from a Redis database, it is typically unrecoverable through Redis itself. Did you enable your Redis Database (RDB) snapshot in your configuration? I recommend enabling it to provide extra protection from failures that can cause cache flushes. I also recommend using Standard Tier to provide highly available instances with multiple replicas, and enable fast recovery using automatic failover if the primary fails. 

In addition to RDB snapshots, you can use Export and Import to manually backup and restore your data.

I hope the above information is helpful.