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
Verify before restore #2012
Verify before restore #2012
Conversation
This can be re-use later on to verify file integrity before attempting to restore them. Signed-off-by: Stephane Tang <hi@stang.sh>
Previously, it was unconditionnally restoring every single file. We now verifying if a file exist locally and if its content is valid before restoring it. Adopting a similar behavior as with 'rsync'. Signed-off-by: Stephane Tang <hi@stang.sh>
9b20ffc
to
60dc0f4
Compare
Codecov Report
@@ Coverage Diff @@
## master #2012 +/- ##
==========================================
- Coverage 50.12% 45.89% -4.23%
==========================================
Files 169 169
Lines 13563 13569 +6
==========================================
- Hits 6798 6228 -570
- Misses 5742 6372 +630
+ Partials 1023 969 -54
Continue to review full report at Codecov.
|
Signed-off-by: Stephane Tang <hi@stang.sh>
I suggest this wait until after #1719 |
Thank you very much for the contribution! I think @ifedorenko is right: This needs to wait until #1719 is merged. |
That's been merged now but there's conflicts. |
Few notes/observations
|
Sorry, I was on holiday for a little while. I'll try to have a look and update this PR, taking @ifedorenko inputs in consideration. |
Hey, are you still interested in working on this? Or are you stuck and need help? :) |
Sorry, TBH, I didn't manage to make much time to work on this since my last comment — we're still running on a forked build that seem to do the job for now, and got other stuff prioritised so I'm not sure when I'll be able to pick it up again. If someone is keen to take-over, I won't say no. If not, I'll just keep it in my backlog. |
Superseded by #3425. |
What is the purpose of this change? What does it change?
--verify
option into function ofRestorer
Was the change discussed in an issue or in the forum before?
#2011
Checklist
changelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits