Server migration

Description

I’m trying to migrate manual installation to docker deployment. I successfully imported Db to the new docker deployment, yet all configuration settings have defaulted. Why is that so? How can I import old server settings?

Server Setup Information

  • Version of Rocket.Chat Server: 5.1.3
  • Operating System: debian
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 14.19.3
  • MongoDB Version: 4.4.15
  • Proxy: nginx
  • Firewalls involved:

Hi!

Check out the mongo dump command you are using. It may not be dumping everything.

Here you will find the doc to manage mongodb in docker. This is the dump command it provides:

mongodump --archive > db.dump

Hi,

I used exactly mongodump --archive=dump.gz --gzip to backup
and
docker-compose exec -i <container id> mongorestore --archive --gzip < /tmp/dump.gz
also I executed
docker exec -i <container id> mongod repair

Mind that I’m dumping from a manual installation

The settings will live in the settings collection.

Can you make sure those are in the dump?

I’m not very familiar with Mongodb. Is it the db.rocketchat_settings collection?

That’s right.

Here you can see an example, using MongoDB Compass: