You can use redis-rdb-tools and a small python script to solve this problem.
from rdbtools import RdbParser, RdbCallback
from redis import StrictRedis
class MyCallback(RdbCallback):
def __init__(self):
super(MyCallback, self).__init__(string_escape=None)
# Redis connection where we will write the objects read from rdb
self.red = StrictRedis()
def set(self, key, value, expiry, info):
# discard expiry and just write key=value into redis
self.red.set(key, value)
# depending on the data types you use, you will have to override other similar methods
def main():
callback = MyCallback()
parser = RdbParser(callback)
# path to the rdb file you want to parse
parser.parse('dump.rdb')
if __name__ == '__main__':
main()