Transfer MongoDB Data

Im trying to transfer my own DB into the built-in version, but I can't seem to figure it out.
14 Replies
milo
milo3y ago
use mongodump
DracoClaw
DracoClawOP3y ago
i cant figure out how to do it
milo
milo3y ago
im not sure sorry i havent used mongodump
DracoClaw
DracoClawOP3y ago
might just try to do it manually? is there a way to access the railway mongodb on the mongo website?
milo
milo3y ago
yeah you already sent im ont sure i have never used mongodump try asking on stackoverflow or discord.gg/programming
DracoClaw
DracoClawOP3y ago
wait, i think i got it so now i just need to import it somehow
nebula
nebula3y ago
try using mongorestore
DracoClaw
DracoClawOP3y ago
is this correct? mongorestore --uri mongodb+srv://mongo:<PASSWORD>@containers-us-west-49.railway.app
nebula
nebula3y ago
i think
DracoClaw
DracoClawOP3y ago
Hmm says not a proper dns
nebula
nebula3y ago
https://stackoverflow.com/a/8070413/12229799 idk mongo so im just going off of this lol
Stack Overflow
How to import dumped Mongodb?
Dumped a MongoDB successfully: $ mongodump -h ourhost.com:portnumber -d db_name01 -u username -p I need to import or export it to a testserver and have struggle with it, please help me figure out...
DracoClaw
DracoClawOP3y ago
looking into it more, the UI on Railway for Mongo isnt gr8 so ill probably just stick with what i have for now
Want results from more Discord servers?
Add your server