【redis】三种redis数据导出导入方式
引用于:https://blog.csdn.net/qq_21383435/article/details/117261349
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
redis-dump导出
[root@ ~]# redis-dump -u :password@172.20.0.1:6379 > 172.20.0.1.json
redis-load导入
[root@ ~]# cat 172.20.0.1.json | redis-load -u :password@172.20.0.2:6379