Add --repair option for command that work with cache#200
Add --repair option for command that work with cache#200folbricht merged 1 commit intofolbricht:masterfrom
Conversation
|
Thanks for the PR. I do like the feature, though not a fan of passing the repair flag into so many places. You should be able to simplify that quite a bit. If you look at https://github.com/folbricht/desync/blob/master/cmd/desync/store.go#L22, it gets To avoid passing a flag to |
bc3de0b to
07a2080
Compare
Chunks in local cache can corrupt for many reasons and by default
desyncfails when met them. They can be removed by runningdesync verify --repair --store /path/to/cacheand runnnigdesync untar ...again, however it is quite a long operation.It could be convenient to repair them by redownloading invalid chunks from store when we met them during
desync untarand other command which work with cache.