6
I have an application that uses Mongodb, I’m already coming to the end of its development and I just started thinking about how would be made the installation of this bank in production environment. During development the Collections were being created as needed, but I never really stopped to think about how I was going to restore it in production.
How is this usually done? Should I create only the Collections empty start and let the application run? Or I should use the mongodump
? If the mongodump
is the recommended way, as I do so that it does not backup the Documents and contains only Collections with their right?
From now on, thank you.
I get it, I’m gonna do just what you said, put together a script for the creation of Collections and their respective indexes. Thank you for the reply from sergiopereira.
– Zignd