Openshift - how to run mongoexport to export mongodb collection -
i using mongodb on openshift application. i'm not able locate database files. , if use mongoexport command files saved (i'm aware --out option). mongoexport util exists? , i'm not able run mongoexport on openshift.
can me on this?
first go repo folder.
cd app-root/repo/
then run below mongoexport
command.
mongoexport --host hostname --port port --authenticationdatabase admin --username admin --password password --db test --collection collection --out collection.json
--authenticationdatabase
must option when specify username , password exists in different database.
refer documentation more options.
Comments
Post a Comment