wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
529 stars 75 forks source link

backup leveleb #74

Closed juyuancai closed 6 years ago

juyuancai commented 6 years ago

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.

wbolster commented 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.