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

redis-cli -n 5 -h 127.0.0.1 -p 6379 -a uwhxh2746dbap keys '*' | xargs -I '{}' redis-cli -n 5 -h 127.0.0.1 -p 6379 -a uwhxh2746dbap migrate r-bp1b7f4fc1328784992.redis.rds.aliyuncs.com 6379 '' 5 1000 COPY KEYS '{}'

Leave a Reply

Your email address will not be published.