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

Backup repository database at the end of each gc. #97

Open
andrewchambers opened this issue Mar 3, 2021 · 3 comments
Open

Backup repository database at the end of each gc. #97

andrewchambers opened this issue Mar 3, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@andrewchambers
Copy link
Owner

If/when we add optional parity information to the on disk chunks we should also move bupstash.sqlite3 to bupstash.sqlite3.prev at the end of each garbage collection using the sqlite3 backup api. We can optionally add parity information to this copy.

This means we have a usable metadata backup to protect users from corruption of the metadata.

@andrewchambers
Copy link
Owner Author

So we no longer have an sqlite3 database in the repository, but we should still consider copying the oplog somewhere safe at the end of gc.

@andrewchambers
Copy link
Owner Author

I would very much like to add this for 1.0 - It seems like an important feature.

@andrewchambers
Copy link
Owner Author

We now have BUPSTASH_KEEP_WAL which is worth keeping in mind for this sort of thing.

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

1 participant