I am trying to backup an existing Rocket Chat database from Docker and restore it to a new installation in Snap.
On the Docker host machine i’ve run:
mongodump --host <ip_address> --forceTableScan --db rocketchat
tar -czvf mongobackup.tar.gz *
I’ve then moved the file to Snap host and run:
cp ~/mongobackup.tar.gz /var/snap/rocketchat-server/common/mongobackup.tar.gz
mv backup_file.tgz rocketchat_backup.tgz
snap run rocketchat-server.restoredb /var/snap/rocketchat-server/common/rocketchat_backup.tgz
I then get the error:
Please check that your backup file contains the backup data within the “parties” directory.
I think this is because the database names are different but not 100% sure. Also not sure whether this approach will work at all?