Backing up and restoring Rocket.Chat? (Docker)


I’m looking to back up my Rocket.Chat installation. In the case of a failure, I can then restore from the backup.

Server Setup Information

  • Version of Rocket.Chat Server: 4.4.0
  • Operating System: Alpine Linux
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ?
  • NodeJS Version: v14.18.2
  • MongoDB Version: 4.4.10 / wiredTiger
  • Proxy: Nginx
  • Firewalls involved:

Any additional Information

I’d like to know how to back up, and then how to restore the Rocket.Chat server from the backup.


There is a nice post here on forums regarding this:

1 Like

Hi, I just managed to do this, but I encountered some errors.

A lot of data was not restored in the test I did:

  • Uploaded pictures
  • Rocket.Chat server settings
  • Cannot log in with any already existing account

I am using docker-compose which the post you mentioned says there could be an issue. How should I progress from here? Thank you.

You need to check the server logs for some unusual messages, errors or warnings.

Just to clarify, there is no migration going on here, right?

You just want to backup an environment, and restore it somewhere else.

We should have a brand new deployment docs soon, that we’ll hopefully cover this in details.

Hi. I’m only able to check the logs on the main Rocket.Chat instance, but not on the new one I’m trying to move to. Logging in with my admin account (which should exist on the new instance), logs me in, but I’m asked to create a new admin account. When I do, I’m given a normal user account and can’t access the admin settings.

My goal is to be able to back up Rocket.Chat fully, and be able to restore if there is a failure, or move to another Docker host.

The thing is I have had this issue for 3 months and if a failure occurs I could lose all the Rocket.Chat data, so I’m trying to get it done ASAP.
Thank you.

Hi Steve! Were you able to solve this?