简体   繁体   English

将数据库从一个实例转移到另一个实例

[英]Transfer database from one instance into an other

I have a redis instance with data inside 2 databases: 0 and 1 我有一个Redis实例,其中有2个数据库中的数据:0和1

I now have a second instance running and would like to transfer the data inside the first instance's database 1 into the second instance's database 0 我现在正在运行第二个实例,并想将第一个实例的数据库1中的数据传输到第二个实例的数据库0中

Is this possible ? 这可能吗 ?

这里不是一个真正的答案,但是我面临一个类似的问题,我目前正在考虑的解决方案之一是使用rdbtools编写脚本,该脚本将读取dump.rdb文件并从某个数据库读取密钥并将其插入到另一个redis实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将一个密钥从一个Redis实例复制到另一个 - Copy one key from one redis instance to another 从具有多个数据库的实例复制单个Redis数据库 - Replicate a single Redis database from an instance that has multiple databases 从多个其他集合中删除一个集合的成员的最佳方法 - Best way to delete members of one set from multiple other sets 将单个实例Redis数据库移动到分片数据库? - Moving a single instance Redis database to a sharded database? 如何将 redis 数据库从一台服务器移动到另一台服务器? - How do I move a redis database from one server to another? Redis的将所有的密钥从一个数据库到另一个 - Redis move all keys from one database to another 我可以使用同一个 Redis 实例来存储来自多个应用程序的会话吗? - Can I use the same Redis instance for storing sessions from more than one application? 从一个uwsgi调度请求到另一个运行Django Channels的uwsgi实例 - Dispatching requests from one uwsgi to another uwsgi instance running Django Channels 在nodeJs的其他模块中使用Redis客户端实例 - use Redis client instance in other modules in nodeJs 如何在redis数据库中配置实例(文件夹) - How to config an instance (folder) inside redis database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM