-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advice on taking backup? #20
Comments
I havn't really done this my self because the stuff that I happen to have done could all be rebuilt from scratch, but I think copying all the files would work, or you could use a data replication module. |
there could be some edge cases around copying the files if a compaction is currently underway... |
@trygve-lie You can use |
Amen. |
How do you guys and girls take backup of your level db data?
Do you (A) just copy out the files level create on disc or do you (b) implement a export feature which dumps all data in the database to file for later import?
If A: How does this work with having the db open by the running node program? Do you close down, backup and then open the database again or do you just copy out files wile running?
If B: Do you export all data every time or do you do diffs? If the database is large, how much would a full export slow down the other operations?
Or do you simply do more advanced stuff where you write to multiple databases on different machines (in different data centers) and look at that as backup?
Maybe we are missing some backup modules for level. At least there should be some advice on how to backup / avoid data loss in the documentation I think.
The text was updated successfully, but these errors were encountered: