mirror of
https://github.com/restic/restic.git
synced 2025-07-16 22:18:32 +00:00
repair pack: add support for truncated files
This commit is contained in:
parent
7c351bc53c
commit
764b0bacd6
@ -44,7 +44,8 @@ func RepairPacks(ctx context.Context, repo restic.Repository, ids restic.IDSet,
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
if err != nil {
|
// ignore truncated file parts
|
||||||
|
if err != nil && !errors.Is(err, io.ErrUnexpectedEOF) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
bar.Add(1)
|
bar.Add(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user