使用migrage指令进行Redis数据迁移

  sre
redis-cli -n 5 -h 127.0.0.1 -p 6379 -a 123456 keys '*' | xargs -I '{}' redis-cli -n 5 -h 127.0.0.1 -p 6379 -a 123456 migrate 192.168.0.2 6379 '' 5 1000 COPY KEYS '{}'

LEAVE A COMMENT

Captcha Code