2

I have 2 redis server. If I have backup of one redis server (example.rdb), then how to load this data to another running redis server without losing current memory data ?

Vikas Saini
  • 1,124
  • 3
  • 11
  • 24

1 Answers1

6

You can use the rdb command from redis-rdb-tools with the -c protocol option to output redis commands representing the data in the RDB file, and pipe them into a redis instance using netcat, socat, or similar.

Unfortunately, this python package was built for now unsupported python 2.7 and 3.5 and has not been updated since 2020 (see FAQs).

mirekphd
  • 4,799
  • 3
  • 38
  • 59
hobbs
  • 223,387
  • 19
  • 210
  • 288