-
Notifications
You must be signed in to change notification settings - Fork 7
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] support BackupEngine #19
Comments
Consider you have To backup:
To restore:
You can browse the code for the details: aimrocks/src/aimrocks/lib_rocksdb.pyx Lines 2454 to 2465 in db06847
|
thank for your answer I just tried and restore_backup do not return anything import aimrocks
rocks_db = aimrocks.DB("/tmp/example_db", aimrocks.Options())
rocks_db.put(b'1', b"toto", disable_wal=True)
backup = aimrocks.BackupEngine("test.db/backups")
backup.create_backup(rocks_db, flush_before_backup=True)
del rocks_db
backup = aimrocks.BackupEngine("test.db/backups")
rocks_db = backup.restore_latest_backup("test.db", "test.db")
print(rocks_db.get(b'1')) give
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
would be great to be able to create a backup from python code
WDYT ?
The text was updated successfully, but these errors were encountered: