Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis Cluster: Node Backup & Restore #2463

Open
benlaplanche opened this issue Mar 20, 2015 · 18 comments
Open

Redis Cluster: Node Backup & Restore #2463

benlaplanche opened this issue Mar 20, 2015 · 18 comments

Comments

@benlaplanche
Copy link

Backups currently happen on a per node basis, so care has to be taken to ensure they do not all run BGSAVE/SAVE at the same time for performance.

Scripting also has to be in place to manually extract the RDB files and copy them away somewhere.

You also need to backup the nodes.conf file to have a chance of doing a restore.

It would be great if this was able to be triggered in a central manner.

Restore is also tricky in that it requires knowledge of the cluster topology. It sounds like you have to recreate the cluster exactly as it was to be able to restore (read drop in) the RDB files you backed up previously.

@antirez
Copy link
Contributor

antirez commented Mar 20, 2015

This is planned. The idea is to have, more or less, redis-trib able to do the following:

  1. Get the N RDB files from the master.
  2. Create a nodes representation in a text file that is part of the backup.
  3. Ability to restore it into a new cluster, like part of create but --from-backup.

Basically the backup will be a directory, not a file.

Would be great to have it now, but no time, but, this does not need to wait for v2. We'll get it in the course of Redis 3.0.x.

@benlaplanche
Copy link
Author

Sounds good and the prioritization for a later release makes sense.

@tsaleh

@antirez
Copy link
Contributor

antirez commented Mar 24, 2015

Fortunately for this specific feature we don't need to wait for the next release, since it is in the tools space, so there will be no need to touch Redis Cluster itself to start to provide support for backups. Given that's an operational big concern hopefully this will be addressed in the course of 3.0.x by back porting the feature from 3.2.0, however currently no exact scheduling.

@chester89
Copy link

what about AOF files? will this proposal consider them too?

@karthimohan
Copy link

@antirez Just wondering if Redis Cluster Backup feature is available now or do you have any approximate time frame on when this will be ready for Production use?

@vuliad
Copy link

vuliad commented Jul 2, 2016

I wonder if this feature will be released in the near future?

@reneklacan
Copy link

@antirez ping

@darklrd
Copy link

darklrd commented Mar 16, 2017

+1

4 similar comments
@otherpirate
Copy link

+1

@cyberelfo
Copy link

+1

@s-aravind-flipkart
Copy link

+1

@vuliad
Copy link

vuliad commented Oct 6, 2017

+1

@rivieiraa
Copy link

+1

1 similar comment
@tungdam
Copy link

tungdam commented Aug 21, 2019

+1

@StefansArya
Copy link

I think we can easily dump & zip all the cluster data to do a backup, and put the data back then restart the cluster to restore it. We will need a script to automate it..

@vuliad
Copy link

vuliad commented Nov 17, 2019

I think we can easily dump & zip all the cluster data to do a backup, and put the data back then restart the cluster to restore it. We will need a script to automate it..

Such backup without downtime will be inconsistent.

@StefansArya
Copy link

Just backup from the slave, not the master

@vuliad
Copy link

vuliad commented Nov 17, 2019

Just backup from the slave, not the master

It's about sharding and point-in-time snapshots across multiple nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests