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

Perform snapshot indexing with --no-lock to prevent issues if repo is in use when re-indexing #664

Open
sumnerboy12 opened this issue Feb 3, 2025 · 2 comments

Comments

@sumnerboy12
Copy link

I assume that when clicking "Index Snapshots" all you are doing is calling restic snapshots to retrieve the repo snapshot history.

This can be done with the --no-lock argument which does a read-only "look" at the repo and means if anything else has a lock on the repo, the index operation will still complete.

@garethgeorge
Copy link
Owner

It’s an interesting idea— I think this could make sense for backrest. What are the downsides of no lock on system task execution?

I assume we can get inconsistent reads at some points but that may not be an issue.

@sumnerboy12
Copy link
Author

I would only think you can use it for readonly operations - i.e. indexing snapshots etc. It just means if there is a backup operation in-progress the snapshot indexing will still complete (although it might not be 100% accurate if the backup finishes etc).

Possibly also useful when calculating stats.

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

No branches or pull requests

2 participants