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