Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssdb-dump导出数据导入数据 #1402

Open
QQxiaoyuyu opened this issue Jun 7, 2021 · 2 comments
Open

ssdb-dump导出数据导入数据 #1402

QQxiaoyuyu opened this issue Jun 7, 2021 · 2 comments

Comments

@QQxiaoyuyu
Copy link

QQxiaoyuyu commented Jun 7, 2021

您好,我用ssdb-dump导出数据,源库的dbsize是135G大约,但是导出来之后是44G,然后用另外的ssdb库启动,dbsize也是44G,请问这个是正常的吗,我怎么确定我的数据全都过来了。

另外,还有个问题,我想用导出的数据做两个主主结构,数据目录配置好,直接启动就可以是吧,和普通的主主没有区别吧

@ideawu
Copy link
Owner

ideawu commented Jun 7, 2021

  1. 需要你自己写脚本遍历数据库来逐条比较
  2. 配置好双主的配置文件, 然后以备份数据启动其中一个实例, 另一个实例用空数据启动, 启动后, 空数据的实例会自动拷贝全量数据. 注意, 由于设计缺陷, 即使另一个实例使用备份数据启动, 仍然会进行拷贝全量数据.

@QQxiaoyuyu
Copy link
Author

好的,多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants