The short version is, you need to produce a set of BSON/JSON files from your backup in order to restore it. I was surprised when Compose's support team asked if I could install MongoDB 2.6. But first, some key information: Backups aren't 3.0-friendlyĮach of these downloads is in a format that's not easy to import into MongoDB 3.0. The rest of this article will go into more detail. Run mongorestore using your Heroku credentials on the newly created dump directory.Run mongodump -dbpath path/to/extracted/dir. ![]() Install MongoDB 2.6 on your local machine.The short versionĪs recommended by the Compose support team: My hope is that this article will be outdated soon, but here's what you need to know today. ![]() However, when I needed to restore from a backup the other day, it took some back-and-forth with Compose's support team to resolve, and there were a few surprises along the way. One of the nicer features of Compose is its automatic backups. ![]() Since March 2015, Compose has supported MongoDB 3.0.
0 Comments
Leave a Reply. |