install on debian
sudo apt -y update
# sudo apt -y upgrade
sudo apt install -y curl build-essential graphicsmagick
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar xzf /tmp/rocket.chat.tgz -C /tmp
# WARNING: you should ensure this is running with the required node version (mostly 14.21.3)
# Solution: install this node version in `rocketchat` user and run the following with that user
sudo chown -R rocketchat:rocketchat /tmp/bundle
sudo su - rocketchat
(cd /tmp/bundle/programs/server; npm i)
exit
systemctl stop rocketchat
# if some old version exists, back it up first!
sudo mv /opt/Rocket.Chat /opt/old-Rocket.Chat
# prepare new version
sudo mv /tmp/bundle /opt/Rocket.Chat
sudo chown -R rocketchat:rocketchat /opt/Rocket.Chat
systemctl start rocketchat
check node and mongodb versions
- Release Page -> https://github.com/RocketChat/Rocket.Chat/releases
- API -> https://releases.rocket.chat/6.3.0/info or https://releases.rocket.chat/latest/info
Use like this:
curl https://releases.rocket.chat/latest/info -s | jq '.nodeVersion' -r
- see
.node_version.txt
file at the root ofbundle
install with docker
backup and restore
mongodump --gzip --archive=pathDatabase.gz
mongorestore --gzip --archive=pathDatabase.gz
- You can back up a specific database by adding the
--db Database
option to themongodump
command. - You can back up a specific collection by adding the
--collection collectionName
option tomongodump
. - When restoring, you can use the
--drop
option to drop the database before restoring. - If using authentication, you need to include the
--username
and--authenticationDatabase
options.