Closed juyuancai closed 6 years ago
copying a snapshot of the db should work, and taking a snapshot of the files as well i think.
btw, this is not plyvel specific. others have the same question: https://stackoverflow.com/questions/12939927/does-leveldb-supports-hot-backups-or-equivalent i think the leveldb mailing list would be a better place to search/ask.
Is there any save way to backup leveldb? I did not find any function to do this. I tried first use db.close(), then directly copy the .db files. But it seems not work very well.