redis-operator icon indicating copy to clipboard operation
redis-operator copied to clipboard

Backup and Restore

Open arezvani opened this issue 2 years ago • 5 comments

Hi, I want to backup from my cluster data in kubernetes. what should i do?

Is there anyway to backup then restore or fork my redis database?

arezvani avatar May 31 '22 07:05 arezvani

It's in to-do list @arezvani

iamabhishek-dubey avatar Jun 01 '22 09:06 iamabhishek-dubey

Are there any thoughts on how to do this @iamabhishek-dubey? We are starting to look at this and I think we are going to run a sidecar to copy the rdb files elsewhere.

devkmsg avatar Jun 02 '22 21:06 devkmsg

@iamabhishek-dubey thank you. Can you please help me now what should i do to have this feature? for backup i think we should use save or bgsave then copy the rdb files to elsewhere but i have many questions:

  1. We should just take backup from masters? for example if we have 6 nodes with 3 master with 1 slave for each master, we should take backup from just 3 masters? how we should take backup from only masters?
  2. what about nodes.conf? I think we should also take backup from cluster config in nodes.conf but my problem is k8s pod ip change and it's not stable. we should write a script to set ip?

arezvani avatar Jun 03 '22 17:06 arezvani

Here is overview how Redis Enterprise takes consistent backup: https://redis.com/redis-enterprise/technology/backup-disaster-recovery/

chobostar avatar Jul 12 '22 12:07 chobostar

another possible solution is to use velero to backup all redis resources with data. mentioned by @arezvani , we can exclude data from slave pods and could use hook to trigger save/bgsave before backup.

jerry-jibu avatar Aug 25 '22 02:08 jerry-jibu

Slightly off topic, but I'm running an application that requires Redis v6 - so I am using 0.8 of the Helm Chart, I was wondering, how might I import the dump from a standalone into a freshly made cluster? Put the dumb.rdb file in /data on first boot?

voarsh2 avatar Jan 25 '23 00:01 voarsh2

Should we implement using velero

shubham-cmyk avatar Feb 19 '23 18:02 shubham-cmyk