mirror: skip status message from excluded buckets (#5190)

This commit is contained in:
Olli Janatuinen
2025-04-10 08:51:27 -07:00
committed by GitHub
parent ddda0fce2c
commit 391616f9cf
+5 -5
View File
@@ -1086,11 +1086,6 @@ func runMirror(ctx context.Context, srcURL, dstURL string, cli *cli.Context, enc
}
}
mj.status.PrintMsg(mirrorMessage{
Source: newSrcURL,
Target: newTgtURL,
})
if mj.opts.isFake {
continue
}
@@ -1100,6 +1095,11 @@ func runMirror(ctx context.Context, srcURL, dstURL string, cli *cli.Context, enc
continue
}
mj.status.PrintMsg(mirrorMessage{
Source: newSrcURL,
Target: newTgtURL,
})
// Bucket only exists in the source, create the same bucket in the destination
if err := newDstClt.MakeBucket(ctx, cli.String("region"), false, withLock); err != nil {
errorIf(err, "Unable to create bucket at `%s`.", newTgtURL)