My hard drive cannot boot into Ubuntu 18.04 Desktop any more (I suspect that the UI doesn't load but everything else should work fine). It will take too much time to analyze what went wrong, so I would like to back up all my physical MongoDB data located in /var/lib/mongodb and have it restored to another PC.
I started booting into Ubuntu live but could only find information to backup/restore MongoDB databases using a MongoDB service like "mongodump and mongorestore"; these cannot be applied here. But is it possible to copy the folder /var/lib/mongodb to a USB drive and then restore it to the same location in a new PC? Are there any permission commands that need to be run?
Similar to what MySQL provides here https://stackoverflow.com/questions/484750/restoring-mysql-database-from-physical-files