redis-transfer
v0.0.13
Published
redis备份、还原、传输辅助工具
Downloads
7
Readme
redis工具
目前仅支持存储内容为字符的数据迁移,且仅支持 string, hash, list, set, zset 类型
npm i -g redis-transfer
redis-tfs help 显示帮助信息
redis-tfs help [dump | load | transfer] 显示指定命令的帮助信息
redis备份
node bin/app.js dump -s redis@localhost:6379/1
node bin/app.js dump -s redis@localhost:6379/1 -k key1 key2 key3
node bin/app.js dump -s redis@localhost:6379/1 -p redis.db
node bin/app.js dump -s redis@localhost:6379/1 -p redis.db -k key1 key2 key3
redis还原
node bin/app.js load -t redis@localhost:6379/12
node bin/app.js load -t redis@localhost:6379/12 -k key1 key2 key3
node bin/app.js load -t redis@localhost:6379/12 -p redis.db
node bin/app.js load -t redis@localhost:6379/12 -p redis.db -k key1 key2 key3
redis传输
node bin/app.js transfer -s redis@localhost:6379/1 -t redis@localhost:6379/12
node bin/app.js transfer -s redis@localhost:6379/1 -t redis@localhost:6379/12 -k key1 key2 key3
node bin/app.js transfer -s redis@localhost:6379/1 -t redis@localhost:6379/12 -p redis.db
node bin/app.js transfer -s redis@localhost:6379/1 -t redis@localhost:6379/12 -p redis.db -k key1 key2 key3