I have an application that uses MongoDB, I'm getting to the end of its development and I just started thinking about how the installation of this bank would be done in the production environment. During development the collections were being created as they were needed, but I never really stopped to think about how I would restore this in production.
How is this usually done? Should I just create empty collections and leave the application running? Or should I use
mongodump ? If
mongodump is the recommended way, how do I prevent it from backing up to documents and contain only the collections with its indexes >?
Thanks in advance.