Restore Previous MongoDB from Snap Snapshot


I was having trouble switching channels from 4.x/beta to 4.x/stable, so I decided to reinstall the Snap. Automatically, Snap always makes a snapshot of user data temporarily in case the user decides to reinstall the application, so I figured my MongoDB would be safe as well. Indeed, I can see that the database is inside that backup (all 4.6gb of it!), but after reinstalling the Snap and restoring the snapshot, it still takes me to the initial setup screen.

At the time, I didn’t realize instructions existed to backup and restore MongoDB.

Note: I still had to install 4.x/beta because Snap doesn’t let you restore backups if the channel is different, so this whole endeavor was likely pointless!

Server Setup Information

  • Version of Rocket.Chat Server: 4.6.4 (4.x/beta)
  • Operating System: DietPi v8.5.1 (similar to Debian)
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: I don’t have NodeJS installed.
  • MongoDB Version: mongod isn’t working…
  • Proxy: Nginx
  • Firewalls involved: No