# redis-shake 文档参考 现在 redis-shake 有两个主版本: * [redis-shake 2.x](https://github.com/alibaba/RedisShake/tree/develop):持续更新 3 年,目前停止更新与答疑,遇到问题推荐尝试 3.x 版本。 * [redis-shake 3.x](https://github.com/alibaba/RedisShake):基于 redis-shake 2.x 重写,代码可读性高,性能较佳。 ## [](https://github.com/alibaba/RedisShake/wiki#redis-shake-3x-%E7%B3%BB%E5%88%97%E6%96%87%E6%A1%A3)redis-shake 3.x 系列文档 * redis-shake 支持三种数据迁移模式:`sync`、`restore`和`scan`: * [快速开始:数据迁移(使用 sync 模式)](https://github.com/alibaba/RedisShake/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B%EF%BC%9A%E6%95%B0%E6%8D%AE%E8%BF%81%E7%A7%BB) * [快速开始:从 dump.rdb 恢复数据(使用 restore 模式)](https://github.com/alibaba/RedisShake/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B%EF%BC%9A%E4%BB%8E-dump.rdb-%E6%81%A2%E5%A4%8D%E6%95%B0%E6%8D%AE) * [快速开始:数据迁移(使用 scan 模式)](https://github.com/alibaba/RedisShake/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B%EF%BC%9A%E6%95%B0%E6%8D%AE%E8%BF%81%E7%A7%BB%EF%BC%88%E4%BD%BF%E7%94%A8-scan-%E6%A8%A1%E5%BC%8F%EF%BC%89) * [使用 filters 做数据清洗](https://github.com/alibaba/RedisShake/wiki/%E4%BD%BF%E7%94%A8-filters-%E5%81%9A%E6%95%B0%E6%8D%AE%E6%B8%85%E6%B4%97) * [运行日志](https://github.com/alibaba/RedisShake/wiki/%E8%BF%90%E8%A1%8C%E6%97%A5%E5%BF%97) * [运行监控](https://github.com/alibaba/RedisShake/wiki/%E8%BF%90%E8%A1%8C%E7%9B%91%E6%8E%A7) * [从常见云厂商迁出数据](https://github.com/alibaba/RedisShake/wiki/%E4%BB%8E%E5%B8%B8%E8%A7%81%E4%BA%91%E5%8E%82%E5%95%86%E8%BF%81%E5%87%BA%E6%95%B0%E6%8D%AE) * [常见报错](https://github.com/alibaba/RedisShake/wiki/%E5%B8%B8%E8%A7%81%E6%8A%A5%E9%94%99) ## [](https://github.com/alibaba/RedisShake/wiki#redis-shake-2x-%E7%B3%BB%E5%88%97%E6%96%87%E6%A1%A3)redis-shake 2.x 系列文档 * [redis-shake 2.x 常见问题](https://github.com/alibaba/RedisShake/wiki/redis%E2%80%90shake-2.x-%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) * README:[https://github.com/alibaba/RedisShake/blob/develop/conf/redis-shake.conf](https://github.com/alibaba/RedisShake/blob/develop/conf/redis-shake.conf) * conf:[https://github.com/alibaba/RedisShake/blob/develop/README.md](https://github.com/alibaba/RedisShake/blob/develop/README.md) # 配置文件示例 ``` source.type = standalone source.address = 127.0.0.1:6379 source.password_raw = donson.redis source.auth_type = auth source.tls_enable = false source.rdb.input = local source.rdb.parallel = 0 source.rdb.special_cloud = target.type = standalone target.address = 192.168.0.170:6379 target.password_raw = donson.redis target.auth_type = auth target.db = 0 target.tls_enable = false target.rdb.output = local_dump target.version = ``` # 脚本执行命令 在linux执行同步脚本操作,如下: ``` ./redis-shake.linux -conf=redis-shake.conf -type=sync ``` # 学习参考地址 - [简书的链接]([https://www.jianshu.com/p/e9aa8ec88b9d](https://www.jianshu.com/p/e9aa8ec88b9d)) - [Github链接](https://github.com/alibaba/RedisShake)