Asked

What is the easiest way to do Backups / Restores Mongo DB?

What is the easiest way to do Backups / Restores Mongo DB?Β 

I have MongoDB Cloud Atlas free plan.

I found 3 potential ways:
- via mongo db cloud paid plan $59/mo
- via mongo command line tool - seems very complicated?
- via paid mac app studio3t

Please suggest what can be the best way.

πŸ‘¨β€πŸ’» Founder of Sheet2Site.com (Acquired) and 🎨 Product Hunt's Maker of the Year 2018. Also: ProgressBarOSX.com About: AndreyAzimov.com/bio


Making Wobaka.com, Simple CRM and sales automation for small businesses.

This was in 2016 and some things may have changed but I used to have a CRON script running that did something like mongodump -d DB_NAME -o OUTPUT_LOCATION then zipped it and uploaded it to a dedicated Dropbox using their API.

Restoring was just downloading whichever timestamp zip you wanted and loading it into mongodb.

Haven't tried any of those paid plans and this was a self-hosted mongodb so may be different :).

I love dogs, simplicity and transparency.

The easiest is to learn to do it via the command line, it isn't as difficult as it sounds :)

I love dogs, simplicity and transparency.

To expand on my comment, I would definately use the mongodump tool and the mongorestore tool. You can find information on how to use them online.

They are the way to go, even if you use mongodb atlas, you still want your own backups and you do it via the mongodump tool.

πŸ‘‹ Join WIP to participate