How create DB & Chat History backup from snap installed chat server

Hi Team

I want to create a backup from snap installed chat server with chat history & DB but when i tried to get backup from snap that gives only already created users.
How to get that chat history & restore it on snap server.

Can you tell us what you tried?

I assume you’ve seen and followed: https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/#snaps

Hi @aaron.ogle

Yes i did same as rocket.chat guide. but unable to get chat history backup and also already created private channels are showing error.

Make sure you stop the destination server when importing.

Other then that tip… without seeing what you’ve tried and steps taken. I can’t really help figure out why your missing data

Hi
These are steps i followed.

  1. I have created backup.
  2. then i’ll copied that backup file into other destination.
  3. backup file extracted from tar and find database name as parties.
  4. After that i’ll shutdown my rocket.chat server.
  5. Then i restored my backup into mongo db using this

sudo /snap/rocketchat-server/current/bin/mongorestore --db parties
~/backup_data/var/snap/rocketchat-server//dump/parties/

replaced with my version.
6.Finally i restarted mongo , rocket.chat , caddy.