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
milo2y ago
use mongodump
DracoClaw
DracoClaw2y ago
i cant figure out how to do it
milo
milo2y ago
im not sure sorry i havent used mongodump
DracoClaw
DracoClaw2y ago
might just try to do it manually? is there a way to access the railway mongodb on the mongo website?
milo
milo2y ago
yeah you already sent im ont sure i have never used mongodump try asking on stackoverflow or discord.gg/programming
DracoClaw
DracoClaw2y ago
wait, i think i got it so now i just need to import it somehow
nebula
nebula2y ago
try using mongorestore
DracoClaw
DracoClaw2y ago
is this correct? mongorestore --uri mongodb+srv://mongo:<PASSWORD>@containers-us-west-49.railway.app
nebula
nebula2y ago
i think
DracoClaw
DracoClaw2y ago
Hmm says not a proper dns
nebula
nebula2y 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
DracoClaw2y ago
looking into it more, the UI on Railway for Mongo isnt gr8 so ill probably just stick with what i have for now