redis数据迁移笔记
mac环境
brew install npm
npm install redis-dump -g
由RedisA ===> RedisB库
针对RedisA: redis-dump -h host1 -p 6379 -d 1 -a pwd > mydb.json
针对RedisB: sudo cat mydb.json -a pwd | redis-cli
参考 https://www.npmjs.com/package/redis-dump
mac环境
brew install npm
npm install redis-dump -g
由RedisA ===> RedisB库
针对RedisA: redis-dump -h host1 -p 6379 -d 1 -a pwd > mydb.json
针对RedisB: sudo cat mydb.json -a pwd | redis-cli
参考 https://www.npmjs.com/package/redis-dump