# Rocket.Chat Mongo Database

**URL:** <https://forums.rocket.chat/t/rocket-chat-mongo-database/2175>\
**Category:** Community Support\
**Created:** [October 4, 2018, 12:30pm UTC](https://forums.rocket.chat/t/rocket-chat-mongo-database/2175 "2018-10-04T12:30:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsejoseph](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fsejoseph](https://forums.rocket.chat/u/fsejoseph)\
**Post date:** [October 4, 2018, 12:30pm UTC](https://forums.rocket.chat/t/rocket-chat-mongo-database/2175/1 "2018-10-04T12:30:48Z")

</div>

I have Rocket.Chat running inside of Docker Swarm (stack file). I have an old RC, and I built a new RC. I want to move all the messages, and channels from the old RC to the new RC. I just want the messages and channels nothing else.

Can I just take the messages/channel files from the old RC and upload them to the new RC? Also, is there any other files I need to -out for just messages and channels  
From Rocket.Chat Folder  
rocketchat\_message.metadata.json  
rocketchat\_message.bson

rocketchat\_room.metadata.json  
rocketchat\_room.bson

From the Metaor Folder  
rocketchat\_message.bson  
rocketchat\_message.metadata.json  
rocketchat\_message\_read\_receipt.bson  
rocketchat\_message\_read\_receipt.metadata

rocketchat\_room.bson  
rocketchat\_room.metadata.json

I got these files by running this in my mongo container.  
mongodump --db rocketchat --out /var/backups/mongobackups/  
mongodump --db meteor --out /var/backups/mongobackups/  
mongodump --db admin --out /var/backups/mongobackups/

---

<div class="post-metadata">

**Author:** ![fsejoseph](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fsejoseph](https://forums.rocket.chat/u/fsejoseph)\
**Post date:** [October 4, 2018, 2:39pm UTC](https://forums.rocket.chat/t/rocket-chat-mongo-database/2175/2 "2018-10-04T14:39:07Z")

</div>

Update: I made folders(rocketchat and meteor) with just those files and did

mongorestore --db rocketchat --drop ./var/backups/just/rocketchat  
mongorestore --db meteor --drop ./var/backups/just/meteor

I see some messages but still not all messages.

So far I see the rooms(channels) in the admin room search but I do not see the rooms popping up on the left handside.

I hope it is just loading slowly. Oh and I believe I lost the data for new RC.

---

<div class="post-metadata">

**Author:** ![fsejoseph](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@fsejoseph](https://forums.rocket.chat/u/fsejoseph)\
**Post date:** [October 4, 2018, 3:20pm UTC](https://forums.rocket.chat/t/rocket-chat-mongo-database/2175/3 "2018-10-04T15:20:54Z")

</div>

Update: I do not see the rooms popping up in the search bar but i do see the rooms in the admin room search. So, I think the left side bar where the rooms/channels should show the rooms are not showing. Why would they not show?
