My database data is gone (mongoDB)
yashko
PROOP

a year ago

Hello team! after doing unmount/mount/resize - my data from database is gone. Can you please take a look? Is it possible to download whats in my volume, maybe its still there? Hope this can be restored...

Volume name - swing-volume

Solved

3 Replies

a year ago

Hello,

You had the volume mounted to the wrong location of /data for Mongo, the volume needs to be mounted to /data/db

I've fixed that for you.

Additionally, you do not need to unmount / mount to grow the volume, we handle all that for you.

I would also recommend growing the volume to 5GB, as Mongo will just crash again because Mongo needs a lot of free space.

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


yashko
PROOP

a year ago

Thank you very much Brody! That was quick slightly_smiling_face emoji

I have a question about backup. Is there a way I can manually download Volume content? So at least I can store some backups at my end


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Hello,

Since this is a Mongo database, you would want to use mongodump -

https://www.mongodb.com/docs/database-tools/mongodump/

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved yashko 10 months ago


Loading...