kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
479 stars 39 forks source link

copy data folder to new server #256

Closed morteza102030 closed 7 months ago

morteza102030 commented 10 months ago

i copy data folder to new server now my app get error and don't run

Segmentation fault (core dumped)

kriszyp commented 10 months ago

If you are attempting to copy files while they are in use (while writes are taking place) with a typical file system copy command, this will result in indetermistic copying of pages from different transactions and leads to database corruption if you try to open the target file. LMDB has a specific function to support snapshot based backup of a database to a target file. I added docs for this here: https://github.com/kriszyp/lmdb-js#dbbackuppath-promise