- Make sure RedwoodHQ is running
- Open command line interface and navigate to: \RedwoodHQ Install Location\vendor\MongoDB\bin
- Type “mongodump” and press Enter
- Wait until process is complete (might take some time depending on how much data you have in RedwoodHQ)
- Close command line interface
- Shut down RedwoodHQ: Start -> RedwoodHQ -> Stop RedwoodHQ
- Rename folder: \RedwoodHQ Install Location\data to \RedwoodHQ Install Location\data_old
- Create new folder: \RedwoodHQ Install Location\data
- Create new folder: \RedwoodHQ Install Location\data\db
- Rename folder: \RedwoodHQ Install Location\vendor\MongoDB to \RedwoodHQ Install Location\vendor\MongoDBv2
- Rename folder: \RedwoodHQ Install Location\vendor\MongoDBv3 to \RedwoodHQ Install Location\vendor\MongoDB
- Move folder: \RedwoodHQ Install Location\vendor\MongoDBv2\bin\dump to \RedwoodHQ Install Location\vendor\MongoDB\bin
- Open command line interface and navigate: \RedwoodHQ Install Location\vendor\MongoDB\bin
- Type “mongod —dbpath ..\..\..\data\db” and press Enter
- Open another command line interface and navigate: \RedwoodHQ Install Location\vendor\MongoDB\bin
- Type “mongorestore” and press Enter
- Wait until it’s done restoring
- Kill mongod process in cmd window (eg: Ctrl-C) and close all command line windows
- Delete folder: \RedwoodHQ Install Location\vendor\MongoDB\bin\dump
- Start RedwoodHQ: Start -> RedwoodHQ -> Start RedwoodHQ
Everything should work as is or better now. It is recommended to keep data_old folder (which now contains MongoDBv2 old db) just to make sure you can roll back to it, but if after few weeks things are working fine, then you can delete it if you want to free up some space.
Post your comment on this topic.