Does anyone know if restoring from the filesystem snapshot that looks like below is possible?
I copied the contents of the dbpath (/data/db) to a different directory. As the size of the database was not big, I made a copy of the directory. The mongodb running it was an older version, and I’m not sure which one.
Now I only have these files and hoping to recover what is inside. The journal directory looks empty.
When I connect it and check the databases, I see only ‘admin’, ‘config’, and ‘local’.
The files locall.0 and local.ns has size 64M and 16M respectively and it looks like the data is in there. Do you think I can recover the data?
Thank you for your help in advance!
**hjk@ops**:**/ops/mongodb-backup/db**$ ls -lh total 80M drwxr-xr-x 2 hjk hjk 10 Nov 29 15:30 **_tmp** drwxr-xr-x 2 hjk hjk 10 Nov 29 15:30 **journal** -rw-r--r-- 1 hjk root 64M Nov 29 15:31 local.0 -rw-r--r-- 1 hjk root 16M Nov 29 15:31 local.ns -rwxr-xr-x 1 hjk hjk 0 Nov 29 15:31 **mongod.lock**