RedisShake
主从迁移
主从节点备份到rdb文件
配置参考
注意事项
- Redis的账号必须要有复制权限,可以使用
sync命令1 2 3 4 5
| source.type = standalone source.address = r-bp1udlaoowk36dir3j.redis.rds.aliyuncs.com:6379 source.password_raw = backup:IVDLpxog17LUQZAE source.auth_type = auth target.rdb.output = dump_rdb
|
执行导出
1
| ./redis-shake.linux -conf=redis-backup.conf --type=dump
|
输出
从Rdb备份文件迁移到Redis
配置文件参考
1 2 3 4 5 6 7 8 9 10 11 12
| source.rdb.input= dump_rdb.0 target.address= 127.0.0.1:2258
target.password_raw=John.Darks
key_exists= rewrite
parallel= 6
|
执行导入
1
| ./redis-shake.linux -type=restore -conf=redis-restore.conf
|