| 1 |
Bugfix: Complete intermediate index upload |
| 2 |
|
| 3 |
After a user posted a comprehensive report of what he observed, we were able to |
| 4 |
find a bug and correct it: During backup, restic uploads so-called |
| 5 |
"intermediate" index files. When the backup finishes during a transfer of such |
| 6 |
an intermediate index, the upload is cancelled, but the backup is finished |
| 7 |
without an error. This leads to an inconsistent state, where the snapshot |
| 8 |
references data that is contained in the repo, but is not referenced in any |
| 9 |
index. |
| 10 |
|
| 11 |
The situation can be resolved by building a new index with `rebuild-index`, but |
| 12 |
looks very confusing at first. Since all the data got uploaded to the repo |
| 13 |
successfully, there was no risk of data loss, just minor inconvenience for our |
| 14 |
users. |
| 15 |
|
| 16 |
https://github.com/restic/restic/pull/1589 |
| 17 |
https://forum.restic.net/t/error-loading-tree-check-prune-and-forget-gives-error-b2-backend/406 |