Databases
Mongo, MySQL, Redis and BigQuery. Mostly!

Mongo

Export a collection to be used for import later
1
mongoexport --host <host>:<port> --db <database> --username <username> --password <password> --collection <collection> --out <collection>.json
Copied!
Import the collection from exported json file
1
mongoimport --host <host>:<port> --ssl --username <username> --password <password> --authenticationDatabase admin --db <collection> --collection <collection> --type json --file <collection>.json
Copied!
Last modified 2yr ago
Copy link