![]() ![]() T20:20:52.642+0100 scows.tasks XXX/XXX (100.0%)ĮDIT 2: User has DNS issue which ignores -uri parameter and connects to localhost. This will export BSON structured files (compressed) into /tmp/scows directoryĮDIT: Export from MongoDB Atlas, use this: mongoexport -collection tasks -out /tmp/tasks.json This will export JSON file (no compression) into /tmp directoryīut if you export with mongodump command, you can compress your exported data mongodump -host="some_ip:some_port" -username=user -password=pass -db scows -collection tasks -gzip -out /tmp Mongoexport -host="some_ip:some_port" -username=user -password=pass -db scows -collection tasks -out /tmp/tasks.json Mongoexport -host="some_ip:some_port" -db scows -collection tasks -out /tmp/tasks.json Mongoexport -db scows -collection tasks -out /tmp/tasks.json ![]() Try one of suggested option (Ubuntu terminal): #localhost:27017 security disabled How do I properly export a collection from MongoDB to my computer? Posts I used to solve the problem but that unfortunately didn't help me out:ģ) This source was useful but didn't help me find out the problemĤ) And lastly this one to help me with the command but I always had the same error.ĥ) Also as mentioned in the official documentation I am using my Ubuntu 18.04 shell as terminal to input the command instead of the mongo shell. The -passphrase option set to a passphrase used to encrypt the output file. The -export-connections option set to the destination of the output file. The name and file path of the executable depend on your operating system. ![]() SIGKILL T12:55:20.690-0500 error connecting to db server: no Procedure To export encrypted saved connections with the Compass CLI, specify: The path to the MongoDB Compass executable. Mongoexport -host=127.0.0.1 -db scows -collection tasks -out tasts.jsonĪnd in doing this I always got the same exact error: Mongoexport -vvvv -db scows -username='my_username' -password='my_passwd' -collection tasks -out /home/to/Desktop/storageMongo/tasks.json -f 'my_passwd' I have been trying to do it using various ways but none of them worked: mongoexport -verbose -db scows -collection tasks -out tasks.json -verbose Given the following database and related collection scows.tasks, how do I export 2GB it for storage purposes so to make space? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |