Rocket.chat: Migrate from Rocketchat 0.42 to latest snap without data loss

Created on 21 Feb 2017  路  5Comments  路  Source: RocketChat/Rocket.Chat

Hi guys,

Firstly, thanks for an awesome server, it's great! :)

I've just tried to move to the latest version and this appears to all work via snaps now, which is great in terms of managing upgrades etc. but it's not clear how to either

a) move old mongodb db (rocketchat) to the new snaps db
b) point the rocketchat snap server at the old mongo db with all my users stored in it.

Am I missing something obvious?!
Many thanks in advance

Jay

Rocket.Chat Version: previously 0.42, currently latest snap version
Running Instances: 1
Node Version: 0.45

Most helpful comment

Old Setup:

  • Manual setup of rocketchat on debian 8
  • Manual setup of mongodb on debian 8

New Setup

  • Ubuntu 14.04
  • rocketchat with snap

That worked for me:

  • stop rocketchat
  • "mongodump --out rocketdump"
  • stop mongodb
  • copy "rocketdump" folder to new server

Switching to new ubuntu server

  • "snap install rocketchat-server"
  • "sudo service snap.rocketchat-server.rocketchat-server stop"
  • "sudo /snap/rocketchat-server/current/bin/mongorestore --drop --db parties /home/user/rocketdump/rocketchat
  • "sudo service snap.rocketchat-server.rocketchat-server start"

done

All 5 comments

Ignore me, I worked it out ;)

Dumped my old rocketchat DB and did a drop and restore to the new parties DB.
Everything seems to be up and running now.

Thanks

Jay

@mm-jatkins any interest in contributing the steps for this, to the official docs?

+1

Would be great if someone can write the steps down.

Old Setup:

  • Manual setup of rocketchat on debian 8
  • Manual setup of mongodb on debian 8

New Setup

  • Ubuntu 14.04
  • rocketchat with snap

That worked for me:

  • stop rocketchat
  • "mongodump --out rocketdump"
  • stop mongodb
  • copy "rocketdump" folder to new server

Switching to new ubuntu server

  • "snap install rocketchat-server"
  • "sudo service snap.rocketchat-server.rocketchat-server stop"
  • "sudo /snap/rocketchat-server/current/bin/mongorestore --drop --db parties /home/user/rocketdump/rocketchat
  • "sudo service snap.rocketchat-server.rocketchat-server start"

done

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

mattlin picture mattlin  路  3Comments

tanc picture tanc  路  3Comments

karlprieb picture karlprieb  路  3Comments

djeber picture djeber  路  3Comments