diff --git a/src/internal/kopia/wrapper.go b/src/internal/kopia/wrapper.go index 6f7dd69eb..9b20f5151 100644 --- a/src/internal/kopia/wrapper.go +++ b/src/internal/kopia/wrapper.go @@ -413,6 +413,7 @@ func (w Wrapper) ProduceRestoreCollections( } var ( + loadCount int // Maps short ID of parent path to data collection for that folder. cols = map[string]*kopiaDataCollection{} el = errs.Local() @@ -451,6 +452,11 @@ func (w Wrapper) ProduceRestoreCollections( } c.streams = append(c.streams, ds) + + loadCount++ + if loadCount%1000 == 0 { + logger.Ctx(ctx).Infow("loading items from kopia", "loaded_count", loadCount) + } } // Can't use the maps package to extract the values because we need to convert @@ -460,6 +466,8 @@ func (w Wrapper) ProduceRestoreCollections( res = append(res, c) } + logger.Ctx(ctx).Infow("done loading items from kopia", "loaded_count", loadCount) + return res, el.Failure() }