Redis 数据库迁移
下载:
使用工具-redis-shake
# 源端redis的类型,支持standalone,sentinel,cluster和proxy四种模式,注意:目前proxy只用于rump模式。
source.type = standalone
# 源redis地址。对于sentinel或者开源cluster模式,输入格式为"master名字:拉取角色为master或者slave@sentinel的地址",别的cluster
# 架构,比如codis, twemproxy, aliyun proxy等需要配置所有master或者slave的db地址。
source.address = 10.10.3.151:6379
source.password_raw = 123456
source.auth_type = auth
source.tls_enable = false
# 目的redis的类型,支持standalone,sentinel,cluster和proxy四种模式。
target.type = standalone
target.address = 10.10.3.208:6379
target.password_raw = 123456
target.auth_type = auth
# 执行启动(启动时确保 目标数据库是空,否则会报错)
#启动
./redis-shake.linux -type sync -conf redis-shake.conf
#停止
ctrl + c