ho.tho
April 15, 2021, 9:50am
1
Description
Database backup from snap and restore when manual installation lost all previously logged in users,All previous users are lost even though the chat history in the admin is still visible
Server Setup Information
Version of Rocket.Chat Server: 3.13.2
Operating System: ubuntu 20.04
Deployment Method: tar
Number of Running Instances: 3.13.2
DB Replicaset Oplog:
NodeJS Version: v12.18.4
MongoDB Version: 4.0.23
Proxy: nginx
Firewalls involved:
Any additional Information
Hi,
IIRC a backup from snap will not restore correctly to a tar install as the collection names are different.
Can you just confirm that that is what you did?
There are other posts on this with the solution - renaming the collection.
ho.tho
April 16, 2021, 12:59am
3
hello so how can I rename the collection so that all the users can be recognized, please help me with this problem, thank you very much
I think this is the answer you are looking for:
opened 06:28AM - 07 Sep 18 UTC
closed 03:34PM - 07 Sep 18 UTC
I want to get rid of snap.
I have RocketChat 0.69.0 installed via snap on Ubunt… u 17.10.
Is it possible to backup database and use it on new RocketChat installed in manual way on [CentOS](https://rocket.chat/docs/installation/manual-installation/centos/)?
What is the steps?
Thanks.
Can I use for backup [this manual](https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/#how-do-i-backup-my-snap-data)?
How I can deploy this database on new RocketChat?
Also you need to make sure you IMPORT to the same version as your EXPORT or you may well experience issues.
1 Like
ho.tho
April 19, 2021, 2:24am
6
Hello, I added the data manually in users table and it worked, thank you
1 Like
Perfect and thanks for letting us know.
1 Like
hafija
April 29, 2021, 7:51am
8
what is the process,plz share with us
ho.tho
April 29, 2021, 8:28am
9
into the data backup source, select the users.bson file, then insert the data into users.bson table of the new data, it’s already running