当前位置:网站首页>Redis data migration (II)
Redis data migration (II)
2022-07-03 20:48:00 【Interesting soul_ A secular heart】
Mode one : Use redis-cli Migrating data
Migrating code ( take )192.168.31.216 Server redis Of 0 All data in the database is migrated to the server that executes the command redis Of 0 database :
New file
vim redis-mv.sh And add the following
redis-cli -h 192.168.31.216 -p 6379 -n 0 keys "*" | while read key
do
redis-cli -h 192.168.31.216 -p 6379 -n 0 --raw dump $key | perl -pe 'chomp if eof' | redis-cli -h 127.0.0.1 -p 6379 -n 0 -x restore $key 0
echo "migrate key $key"
done
Give the file corresponding permissions , And execute the file
chmod 777 redis-mv.sh
./redis-mv.sh
Execute output diagram 
Database value before migration 
After the move 
边栏推荐
- 2.5 conversion of different data types (2)
- Global and Chinese market of high purity copper foil 2022-2028: Research Report on technology, participants, trends, market size and share
- Analysis of gas fee setting under eip1559
- 2.4 conversion of different data types
- AST (Abstract Syntax Tree)
- LabVIEW training
- Camera calibration (I): robot hand eye calibration
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of rotary tablet presses in the global market in 2022
- 同花顺开户注册安全靠谱吗?有没有风险的?
- jvm jni 及 pvm pybind11 大批量数据传输及优化
猜你喜欢

Exercises of function recursion

全网都在疯传的《老板管理手册》(转)
![AI enhanced safety monitoring project [with detailed code]](/img/a9/cb93f349229e86cbb05ad196ae9553.jpg)
AI enhanced safety monitoring project [with detailed code]

Design e-commerce seckill system

2022 high voltage electrician examination and high voltage electrician reexamination examination

2.5 conversion of different data types (2)

JS three families
![[Tang Laoshi] C -- encapsulation: member variables and access modifiers](/img/be/0b38c0f1a27f819f7c79bcf634fbd4.jpg)
[Tang Laoshi] C -- encapsulation: member variables and access modifiers

Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,

How to handle wechat circle of friends marketing activities and share production and release skills
随机推荐
Discussion Net legacy application transformation
Task of gradle learning
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
Measurement fitting based on Halcon learning -- Practice [1]
What is the maximum number of concurrent TCP connections for a server? 65535?
University of Electronic Science and technology | playback of clustering experience effectively used in reinforcement learning
QT6 QML book/qt quick 3d/ Basics
How to modify the network IP addresses of mobile phones and computers?
Golang type assertion and conversion (and strconv package)
In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
Transformer structure analysis and the principle of blocks in it
Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
C 10 new feature [caller parameter expression] solves my confusion seven years ago
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
The "boss management manual" that is wildly spread all over the network (turn)
Plan for the first half of 2022 -- pass the PMP Exam
Node MySQL serialize cannot rollback transactions
强基计划 数学相关书籍 推荐