I want to export an entire mongodb from A mongo to B mongo that are completely equals in terms of structure. They have the same collections and the collections also are equals to. The mongo instances are on different servers something like staging and dev environments. The idea is to do it in just one command like:
mongoexport --host="mongodb0.example.com:27017" --db=reporting <to-other-mongo-host>
Is there an way to do it in "one shot" or I have to do a mongoexport
and then a mongoimport
?