I want to take backup of a database in the mongodb. I found the command from documentation
mongodump --dbpath /data/db/ --out /data/backup/
But I see there is no any directory called "/data/" in my machine? But I can see the database in mongo shell:
$ mongo
MongoDB shell version: 2.4.9
connecting to: test
> show dbs;
ihtx 0.203125GB
local 0.078125GB
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…