prune: report missing but unneeded pack files

This indicates a damaged repository so add some output to help with
debugging.
This commit is contained in:
Michael Eischer 2021-01-28 21:42:26 +01:00
parent ff95999246
commit 7b8886c052
1 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,10 @@ func prune(opts PruneOptions, gopts GlobalOptions, repo restic.Repository, usedB
return errorPacksMissing return errorPacksMissing
} }
if len(ignorePacks) != 0 { if len(ignorePacks) != 0 {
Verbosef("missing but unneded pack files are referenced in the index, will be repaired\n") Warnf("Missing but unneeded pack files are referenced in the index, will be repaired\n")
for id := range ignorePacks {
Warnf("will forget missing pack file %v\n", id)
}
} }
repackAllPacksWithDuplicates := true repackAllPacksWithDuplicates := true