...
Code Block |
---|
/usr/local/mongodb/bin/mongodump -h kaos -d nmis -c sites -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c reportConfig -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c reportData -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c sumCache -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c command_outputs -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c command_output_log -o . /usr/local/mongodb/bin/mongodump -h kaos -d nmis -c endpoints -o . |
Importing a Collection
NB: Before importing data make sure all indexes have been created (It is safe to run these commands more than once).
Now you have them on disk you can import them to another Mongo instance, this assumes you are going to import to a local DB and the NMIS database has been added and credentials set. From the same folder where the dumped BSON files are located run the following.
...