I have a problem in my exercise:

  1. Export the db atelier. For that, use the command ./mongodump -d atelier My answwer : $ mongodump -d atelier
  2. Import the contenu of the db atelier in the db atelier2. For that, use the command ./mongorestore (use --help for see options). My answer : $ mongorestore dump/atelier -d atelier2

It doesn't work. The contenu of atelier is never copied in the db atelier2, the db atelier2 give no results so it must contains the collections of the data base atelier. Why it doesn't work ?

Please help me


  • Can you give us return messages of mongorestore command ? what commands do you do to check content of your DB atelier2 ?
    – Seb3W
    Mar 4, 2016 at 15:00

1 Answer 1


The dump path has to be the final argument of mongorestore.


mongorestore -v --db atelier2 dump/atelier

should do the trick. If not the verbose flag -v should give hints to the deeper cause.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.