Skip to content
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 capability for UStore #336

Open
2 of 3 tasks
DarvinHarutyunyan opened this issue Apr 19, 2023 · 2 comments
Open
2 of 3 tasks

Feature: Backup capability for UStore #336

DarvinHarutyunyan opened this issue Apr 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@DarvinHarutyunyan
Copy link
Contributor

Describe what you are looking for

Be able to make backups for the DB on the specified path. View existing backups, delete and restore the necessary backup.
The necessary placeholders for this new functionality can be the following interface functions:

  • backup_create(db, path, id)
  • backup_restore(db, path, id)
  • backup_list(db, path, ids)
  • backup_drop(db, path, id)

Can you contribute to the implementation?

  • I can contribute

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@DarvinHarutyunyan DarvinHarutyunyan added the enhancement New feature or request label Apr 19, 2023
@ashvardanian
Copy link
Contributor

We only need one function - exporting a snapshot to a given path.
It will keep the interface much more concise than the Snapshots, Backups, and Checkpoints of RocksDB, but it may be hard to implement efficiently for third-party key-value stores.

One alternative is manually exporting from Snapshot using one or more Iterator-s. That will be much slower than the native approach. We may also research ways to expose the list of managed files, similar to GetLiveFiles, but specific to a certain snapshot.

@DarvinHarutyunyan
Copy link
Contributor Author

What do you mean by exporting a snapshot? (exporting in our export file formats or "exporting" as DB engine native file formats)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants