How do I move a redis database from one server to another?

前端 未结 12 1089
耶瑟儿~
耶瑟儿~ 2020-12-12 09:27

I currently have a live redis server running on a cloud instance and I want to migrate this redis server to a new cloud instance and use that instance as my new redis server

12条回答
  •  自闭症患者
    2020-12-12 10:04

    To check where the dump.rdb has to be placed when importing redis data,

    start client

    $redis-cli
    

    and

    then

    redis 127.0.0.1:6379> CONFIG GET *
     1) "dir"
     2) "/Users/Admin"
    

    Here /Users/Admin is the location of dump.rdb that is read from server and therefore this is the file that has to be replaced.

提交回复
热议问题