Need Help Migrating from SNAP installation to "Manual" installation (done with rocketchatctl script)


I need help or direction toward documentation on the best practices / processes for migrating an instance of Rocket Chat that was / is installed as a SNAP to a new instance of rocketchat that was installed using the rocketchatctl script.

Server Setup Information

  • Version of Rocket.Chat Server: 2.4.2
  • Operating System: Ubuntu 16.04 (Linux 4.15.0-66-generic)
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: 8.17.0
  • MongoDB Version: 3.6.14
  • Proxy: n/a
  • Firewalls involved: n/a

Any additional Information

New Server is Ubuntu 18.04 and has the latest rocket chat installed via the rocketchatctl script (was installed yesterday, will likely be reinstalled again immediately prior to migration). So for the sake of my question, you can assume the new server will have the version information provided by the current latest build installed by the rocketchatctl script.

Hi, you need to use the same version of rocketchat that you want to migrate from, otherwise migration may not work. If you are running the latest with rocketchatctl, you can re install and pass an argument to specify version (rocketchatclt -h).
Then snap uses gridfs so all your uploads are in the db as well as your messages, you should be able to restore the parties db from the snap in the rocketchat db from the rocketchatctl installation. In the FAQ for snap you can find the doc on how to backup the snap db, and also how to access mongodb.