I've noticed when I try and use the badgerdb directory from my live running backend, it complains about a .mem file.
The only solution I've found is to copy -r the full directory somewhere else and delete that .mem file and then it works fine.
But I've noticed this mongodb-dumper seems to avoid this issue. Is there a trick to say ignore .mem file?