I intalled mongodb by the following steps
Now the mongodb server is started and running, I need to import my db with the backup I have. I tried importing data with the following command
It throws
How can I install mongostore and mongodumb seperately? Any help would be appreciated. Thanks in advance.
The mongodump and mongorestore utilities work with BSON data dumps, and are useful for creating backups of small deployments. For resilient and non-disruptive backups, use a file system or block-level disk snapshot function, such as the methods described in the MongoDB Backup Methods document. Note.
The mongodump command will overwrite the existing files within the given backup folder. The default location for backups is the dump/ folder. When the WiredTiger storage engine is used in a MongoDB instance, the output will be uncompressed data.
Basic mongorestore syntax The basic way to restore a database is to use the mongorestore command to specify the backup directory (dump directory) without any options. This option is suitable for databases located in the localhost (127.0. 0.1) using the port 27017.
As of MongoDB 4.4 (released July 30, 2020), you need to install mongodump
separately because the MongoDB Database Tools (which comprises mongodump
, mongorestore
, and more) has become its own project.
I found this out because I upgraded to MongoDB 4.4 today and mongodump
stopped working.
$ mongodump
zsh: command not found: mongodump
I'm on macOS and installed MongoDB via Homebrew. To get mongodump
and friends back, I installed the MongoDB Database Tools via Homebrew:
brew tap mongodb/brew
brew install mongodb-database-tools
It looks like you're not using Homebrew, so this should help:
MongoDB Database Tools Installation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With