1. mongodb
mongodump -h 172.31.123.456 -u root -p password -o ./2016-11-14
解释:
-h // host
-o // export directory
-u // username
-p // password
2. redis
redis-cli
SAVE
mongodump -h 172.31.123.456 -u root -p password -o ./2016-11-14
解释:
-h // host
-o // export directory
-u // username
-p // password
redis-cli
SAVE
本文标题:linux 数据备份
本文链接:https://www.haomeiwen.com/subject/ycjhpttx.html
网友评论