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

前端 未结 12 1097
耶瑟儿~
耶瑟儿~ 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:05

    It is also possible to migrate data using the SLAVEOF command:

    SLAVEOF old_instance_name old_instance_port
    

    Check that you have receive the keys with KEYS *. You could test the new instance by any other way too, and when you are done just turn replication of:

    SLAVEOF NO ONE
    

提交回复
热议问题