Mongodb not installed

Asked

Viewed 61 times

0

For some reason the server I work uninstalled mongodb. The database was with approximately 200GB of data. If I reinstall mongodb I run risk of losing the data? Is there any way I can dump without mongodb?

2 answers

0

No, as long as you do not delete the folder that is configured:

Where and how to store data. Storage: dbPath: /var/lib/mongodb

I did it to get from 3.2 => 4.0

-1

You have given little information in your question, but based on what is described:

  • You will not lose the data if you re-install the database and use the same dbpath.
  • Do dump you mean use mongoexport/mongodump? If so you need a running mongod to use the tools.

The question is old but I think it’s worth the documentation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.