1.直接下载编译好的
https://github.com/tair-opensource/RedisShake/releases
2.编辑配置文件
[scan_reader]
cluster = false # set to true if source is a redis cluster
address = "源服务器:端口"
username = "" # keep empty if not using ACL
password = "密码" # keep empty if no authentication is required
tls = false
dbs = [] # set you want to scan dbs such as [1,5,7], if you don't want to scan all
scan = true # set to false if you don't want to scan keys
ksn = false # set to true to enabled Redis keyspace notifications (KSN) subscription
count = 1000 # number of keys to scan per iteration
[advanced]
rdb_restore_command_behavior = "rewrite"
[redis_writer]
cluster = false # set to true if target is a redis cluster
address = "目标服务器:端口"
username = "" # keep empty if not using ACL
password = "密码" # keep empty if no authentication is required
tls = false
off_reply = false # turn off the server reply
3.运行
./redis-shake sync.toml(刚才编辑的配置文件)
参考:https://tair-opensource.github.io/RedisShake/zh/guide/getting-started.html
评论已关闭