Database backup from snap and restore when manual installation lost all previously logged in users

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.

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:

Also you need to make sure you IMPORT to the same version as your EXPORT or you may well experience issues.

1 Like

Also see here:

1 Like

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

what is the process,plz share with us

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