Comments (3)
you can run redis-port with parameter --filterdb=DBNUM
from redis-port.
--filterdb 不能单独指定源 Redis 的 db num. 吧,比如我使用了 --filterdb=1, 那么 redis-port 会同步 db 1 的数据到 codis 的 db 1, 然而由于 codis 只支持到 db 0 写数据,这时同步便会失败
# ./redis-port sync --from 127.0.0.1:6379 --filterdb=1 --target 127.0.0.1:19000
2015/09/30 16:30:00 [INFO] set ncpu = 1, parallel = 1
2015/09/30 16:30:00 [INFO] sync from '127.0.0.1:6379' to '127.0.0.1:19000'
2015/09/30 16:30:01 [INFO] -
2015/09/30 16:30:02 [INFO] rdb file = 40432168
2015/09/30 16:30:02 [PANIC] select command error
[error]: ERR invalid DB index, only accept DB 0
[stack]:
1 /opt/go/src/github.com/wandoulabs/redis-port/cmd/utils.go:187
main.selectDB
0 /opt/go/src/github.com/wandoulabs/redis-port/cmd/sync.go:210
main.func·021
... ...
from redis-port.
好像是的。redis-port 不会替换 dbnum 的,毕竟这样太危险了。
不过已经提供了根据 db 过滤数据以及后续指令的功能。所以建议你根据自己的需求进行简单地修改,例如直接 bypass 掉 select db 指令即可。
from redis-port.
Related Issues (20)
- make HOT 1
- redis4.0.1迁移到codis3.2.2报错 HOT 9
- 编译命令 HOT 3
- Twemproxy 迁移数据到codis报错 HOT 3
- redis2.x迁移至4.x报错 HOT 5
- codis集群 3.2往Redis单实例 2.8版本迁移出错 HOT 1
- M/S迁移数据到cluster报错
- 2.8.8单节点redis 迁移到codis 3.2集群 报错
- 从redis 3.2实例导入到相同的redis 3.2实例中报错
- 【bug】redis-sync密码带有'@'的时候无法正确解析密码 HOT 1
- how to install it HOT 1
- fix auth
- how to know which redis version is corresponded to the release version
- 使用redis-restore将rdb文件导入集群失败,导入单机就正常
- 支持ssl连接到aws上的redis吗 HOT 1
- redis 5.x support HOT 1
- 从 redis2.x迁移至redis5.0
- invalid RDB version number 9 HOT 7
- 迁移redis到codis报错 [PANIC] encode redis resp failed
- 带过期时间key丢失
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-port.