# Migrate to new server with docker-compse

**URL:** <https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991>\
**Category:** Community Support\
**Created:** [November 6, 2019, 3:16pm UTC](https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991 "2019-11-06T15:16:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cchbr](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cchbr](https://forums.rocket.chat/u/cchbr)\
**Post date:** [November 6, 2019, 3:16pm UTC](https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991/1 "2019-11-06T15:16:37Z")

</div>

### Description

I’m trying to move my RC installation to a new server, I’ve setup nginx and docker-compose on the new server identically to the older server, and copied the data-folder to the new server.  
The old server OS is: Ubuntu 14.04.  
The new server OS is: Ubuntu 18.04.

When I first start the new server it works for a while, but shows “Internal Error” messages in the corner regularly. Some actions does not work at all, such as visiting a channel. I added some screenshots of the errors that are produced.

 ![rc-room-error](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/5/5919f1e342f8a466d18b081af90df1afff9ee2c6.png) ![rc-start-error1](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/e/e646f722c373edb8c8743ef344daa5e9023f1e61.png) ![rc-start-error2](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/e/e15940d6c2ca021441de90aea2768a994419bc09.png)

### Server Setup Information

- Version of Rocket.Chat Server: 2.1.1
- Operating System: Ubuntu
- Deployment Method: Docker-compose
- Number of Running Instances: 1
- MongoDB Version: 3.6
- Proxy: Nginx

### Additional Information

I tried doing it with mongodump at first but I couldn’t figure out how to do it, so I hoped that it would work just as well by copying the data folder.

Any help would be much appreciated!

---

<div class="post-metadata">

**Author:** ![cchbr](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cchbr](https://forums.rocket.chat/u/cchbr)\
**Post date:** [November 7, 2019, 9:44am UTC](https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991/2 "2019-11-07T09:44:54Z")

</div>

Nevermind, I solved this by doing a mongodump on the original server and mongorestore --drop on the new server.

---

<div class="post-metadata">

**Author:** ![jimmymars](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@jimmymars](https://forums.rocket.chat/u/jimmymars)\
**Post date:** [January 28, 2020, 12:00am UTC](https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991/3 "2020-01-28T00:00:39Z")

</div>

I have also deployed using the docker-compose method.  
And used mongodump on my on click install on DigitalOcean’s server to backup the data.  
How do I now mongorestore in my already running Docker container?

Do I go in like this?:  
docker exec -it \<container\_id\> /bin/bash

This could be more of a Docker question than RocketChat.

Thanks for your help in advance.

---

<div class="post-metadata">

**Author:** ![surendrababu.s](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@surendrababu.s](https://forums.rocket.chat/u/surendrababu.s)\
**Post date:** [August 14, 2020, 9:39am UTC](https://forums.rocket.chat/t/migrate-to-new-server-with-docker-compse/4991/4 "2020-08-14T09:39:56Z")

</div>

I am Using Rc in My old server Rc version 0.73.2 Now I want to update it to latest and in Aws server when i am trying it is not taking the backup/data which i copied from old server it is starting new launch wizard
