Export full databases not only collections
I often need to export and import full databases, and now I have to do it with iteration through collections.
Implemented in MongoChef 3.0
-
Anonymous commented
Is there a script that can be run to execute this in IntelliShell?
-
Matthias commented
Nice feature. I am already using it!
-
Thomas (3T) commented
We have implemented this in MongoChef 3.0. Eventually we decided to export to a proper folder rather than a ZIP file.
-
Thomas (3T) commented
That's a great suggestion! That's how we'll implement it.
-
Matthias commented
That feature would be useful in case you want to share the database contents with another developer. I think it would be cool if it would actually encapsulate the JSON of every collection automatically inside a compressed container format (e.g. zip). I think having this as JSON inside a ZIP file would be perfect. It would also mean that you can manipulate things manually if you want.
-
Frank commented
Hi Thomas,
sure, i need an real export/import in a file, so backup and restore works simpler. I am a developer, so i need a easy way to import a local file multiple times (e.g. if a make some errors in development). If i have a remote host for example, i do not want to copy all the time the databases back and forth. I make one export from remote to my local system and use the json or CSV file for import multiple times.
best regards
frank from administrator.de -
Thomas (3T) commented
Hi Frank,
Oh, I see what you mean. Is it that you want to export an entire database to json or CSV?
Otherwise, exporting to another database is functionally equivalent to copying a database. -
Frank commented
Hi, i don't see the export/import function for full databases in Release 2.1.0 (Linux Version). I can copy/paste databases now, of course, but i can not use the import/export feature for databases (the import/export icons are grayed, and no menus are available). What I've overlooked.
best regards
frank from administrator.de