repository: replace CopyBlobs with Repack implementation

This commit is contained in:
Michael Eischer
2025-11-23 16:06:29 +01:00
parent b24b088978
commit 81d8bc4ade
4 changed files with 20 additions and 28 deletions
-2
View File
@@ -276,9 +276,7 @@ func copyTree(ctx context.Context, srcRepo restic.Repository, dstRepo restic.Rep
copyStats(srcRepo, copyBlobs, packList, printer)
bar := printer.NewCounter("packs copied")
bar.SetMax(uint64(len(packList)))
err = repository.CopyBlobs(ctx, srcRepo, dstRepo, uploader, packList, copyBlobs, bar, printer.P)
bar.Done()
if err != nil {
return errors.Fatalf("%s", err)
}