Created
February 14, 2018 14:11
-
-
Save AstraSerg/c2b900b4317926ee50aa3db2fbc2c7d8 to your computer and use it in GitHub Desktop.
Export from mongo to CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongoexport \ | |
--db db \ | |
--collection coll \ | |
--type=csv \ | |
-h host:27017 \ | |
--fields rm_issue_id,status,period,partner_id,summ_info,summ_clear \ | |
-u user \ | |
-p password \ | |
--out file.dump.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment