-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature/backup #10
base: develop
Are you sure you want to change the base?
Feature/backup #10
Conversation
30a3586
to
4d93784
Compare
This change add the possibility to backup and restore a database incrementally: https://github.com/facebook/rocksdb/wiki/How-to-backup-RocksDB%3F
4d93784
to
0729a00
Compare
Thank you for your request. We'll check it. |
since I have implemented benoitc@49978f7 which is using the new checkpoint feature. It's quite more efficient and used by the mysql version of facebook that uses rocksdb. Let me know. |
@benoitc Thank you for your great PR. Anyway,
|
@mocchira the code have been tested on OX and linux. not yet on freebsd. About the implementation obviously it would be better to implement the backup as an asynchronous task. I will check it. However benoitc@49978f7 is probably a lot more efficient since it allows you backup only and only copy needed file, hard-linking others which is very fast. Maybe the patch above could be skipped in favour of such solution? |
I've checked how the both of features works/implements. Long story short,
Since the checkpoint handles a SST file as a hard link or just leaving it (NOT copying) and needless to say, backup should be copied to other physical device normally, On the other hand, So in my conclusion, So if you only need the checkpoint, |
This PR add the
erocksdb:backup/2
anderocksdb:restore/2
function to backup the database incrementally and restore it:https://github.com/facebook/rocksdb/wiki/How-to-backup-RocksDB%3F
Any feedback is welcome.