Comments (3)
redis-port 默认 restore to codis,所以使用 slotsrestore;
导出到普通 redis 的话,需要修改代码:
https://github.com/wandoulabs/redis-port/blob/master/cmd/utils.go#L205
把指令替换成你需要的。
from redis-port.
谢谢,就是这么干的
from redis-port.
@liucyao @spinlock 你好,我在用redis-port工具同步两个redis的数据的时候也遇到这个报错,尝试将
这个文件 里面的
s, err := redigo.String(c.Do("slotsrestore", e.Key, ttlms, e.Value))
改成s, err := redigo.String(c.Do("restore", e.Key, ttlms, e.Value))
,执行后还是有这样的报错:
2016/10/11
11:14:55 [INFO] rdb file = 1077222
2016/10/11 11:14:55 [PANIC] restore command error
[error]: ERR DUMP payload version or checksum are wrong
[stack]:
1 /root/Applications/Go/src/github.com/wandoulabs/redis-port/cmd/utils.go:208
main.restoreRdbEntry
0 /root/Applications/Go/src/github.com/wandoulabs/redis-port/cmd/sync.go:212
main.(*cmdSync).SyncRDBFile.func1.1
... ...
请问你是怎么解决的呢?
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.