本地多个rdb文件,导入自建redis

下载阿里云开源的同步工具
参考地址:https://github.com/alibaba/RedisShake/wiki/%E7%AC%AC%E4%B8%80%E6%AC%A1%E4%BD%BF%E7%94%A8%EF%BC%8C%E5%A6%82%E4%BD%95%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE%EF%BC%9F
下载地址:https://github.com/alibaba/RedisShake/releases
版本地址:https://github.com/alibaba/RedisShake/releases/download/release-v2.0.3-20200724/redis-shake-v2.0.3.tar.gz

[root@root ~]# egrep -v "^$|^#" redis-shake.conf
conf.version = 1
id = redis-shake
log.file =
log.level = info
pid_path =
system_profile = 9310
http_profile = 9320
parallel = 32
source.type = standalone
source.auth_type = auth
source.tls_enable = false
source.rdb.input = 0.rdb;1.rdb;2.rdb;3.rdb;4.rdb;5.rdb;6.rdb;7.rdb #导入源的文件名,target.address 和target.password_raw 删除掉进行同步
source.rdb.parallel = 0
source.rdb.special_cloud =
target.type = standalone
target.address = 127.0.0.1:6379 #本地的地址和端口
target.password_raw = 123456 #密码
target.auth_type = auth
target.db = -1
target.tls_enable = false
target.rdb.output = local_dump
target.version =
fake_time =
key_exists = none
filter.db.whitelist =
filter.db.blacklist =
filter.key.whitelist =
filter.key.blacklist =
filter.slot =
filter.lua = false
big_key_threshold = 524288000
metric = true
metric.print_log = false
sender.size = 104857600
sender.count = 4095
sender.delay_channel_size = 65535
keep_alive = 0
scan.key_number = 50
scan.special_cloud =
scan.key_file =
qps = 200000
resume_from_break_point = false
replace_hash_tag = false
[root@root ~]#

 

[root@root ~]# ./redis-shake.linux -conf=./redis-shake.conf -type=restore      #开始同步,同步时间需要看数据量大小决定

posted @ 2021-07-07 11:41  缺个好听的昵称  阅读(9)  评论(0编辑  收藏  举报