We are using Mango db and just wanted to deploy .0 and .ns extension files in production environement. Could you please suggest better ways to deploy .ns and .0 files.
The files you have described are a subset of the data files used by a deployment using the MMAP storage engine in MongoDB. In order to have a consistent backup of your data, you should be following one of the supported MongoDB Backup Methods in the manual for your version of MongoDB.
For copying files from a development environment, the easiest way to ensure consistency would be to shutdown your MongoDB server before copying all files in the dbPath. The backup methods in the manual include further details relevant to different backup approaches and deployment types.
If you need more assistance, please confirm the following details for your development and production environments:
Specific version of MongoDB server
Type of deployment (standalone, replica set, or sharded cluster)
O/S version
Backup method you are using
I would also note that the default storage engine in MongoDB 3.2+ has changed from MMAP to WiredTiger. WiredTiger has several significant improvements over MMAP including document-level concurrency control and data/index compression. For a new production deployment I would encourage deploying with a recent production release of MongoDB (i.e. latest 3.4.x) as well as the WiredTiger storage engine.
Regards, Stennie
Thanks for you reply, currently we are copying the files and generating .msi(Installation setup). Requirement is best way instead of copying and for generating .msi