Rocket.Chat uses the Meteor open-source framework, and the data is typically stored in MongoDB. If you want to migrate from the built-in Meteor MongoDB server to an external MongoDB server, follow the steps in this guide.
{% hint style="info" %} We do not advise running Rocket.Chat in production from the source using the meteor command. Instead, we recommend using a separate Mongo database and using a compiled meteor bundle, either our official release or your own.
See our recommended deployment methods. {% endhint %}
Before starting, make sure Meteor is running and follow these steps:
- Run the command:
mongodump -h 127.0.0.1 --port 3001 -d meteor
. This will dump the database in a folder calleddump
. - Then, install Mongodb on your system.
- Once Mongo is installed, restore the data using:
mongorestore -d meteor dump/meteor
- In this step, if you want to use a different database, change the database name. Replace
-d meteor
with your desired database name.
- In this step, if you want to use a different database, change the database name. Replace
- Then follow the remainder of the guide on deploying Rocket.Chat for your current OS.