8000 Replace repository checking logic by ThomDietrich · Pull Request #47 · djmaze/resticker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace repository checking logic #47

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

Merged
merged 2 commits into from
Jun 21, 2020
Merged

Conversation

ThomDietrich
Copy link
Contributor
@ThomDietrich ThomDietrich commented Jun 16, 2020

Closes #37

I believe this covers everything the old code caught. It's not much logic besides a lot of logging. Decision to go with cat config follows restic/restic#1690 (comment) - we should watch out for a "check" command implemented in the future.

Major change: So far the initial check could have failed and the backup would still have been scheduled. Now if the check does not succeed the container will fail during initialization.

Quick words about SKIP_INIT_CHECK: I intentionally did not document this variable. It shouldn't be a feature but rather a workaround for users with serious reasons to resort to it. Also, if after this PR is merged a user complains about issues, the variable can serve as a 0-day fix before we understand the needed improvement.

@zoispag
Copy link
zoispag commented Jun 16, 2020

I agree with not using restic snapshots as a way to identify if a repo exists. I have at least one repo that takes about 3 minutes to respond on this command.

Copy link
Owner
@djmaze djmaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice!

@ThomDietrich
Copy link
Contributor Author

Wo 8000 uld be nice if the two of you could test this logic with your existing setups. Every remote might behave slightly different.

Besides that I'm ready to merge, feel free to squash merge to one commit (saw that you've used merge commit last time, which leaves the commit graph in quite a messy state)

@djmaze
Copy link
Owner
djmaze commented Jun 21, 2020

Awesome, works for me on my (SFTP-based) repository. But before merging this, let's discuss the right way to solve it in #48 .

@ThomDietrich
Copy link
Contributor Author

I will answer in #48 after thinking about it.
I would still suggest to merge this PR right away and I will create a new PR with the changes for #48. It could take some days till be agree on the right solution and this PR as it is right now solves a lot of things already. Let's keep it simple :)

@djmaze
Copy link
Owner
djmaze commented Jun 21, 2020

Agreed!

@djmaze djmaze merged commit 8695741 into djmaze:master Jun 21, 2020
@ThomDietrich ThomDietrich deleted the patch-1 branch June 21, 2020 21:48
jeankhawand pushed a commit to jeankhawand/resticker that referenced this pull request Aug 30, 2024
Replace repository checking logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Halt if initialization fails
3 participants
0