diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index 48c11b4b..3e6bf0f9 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -463,6 +463,7 @@ func (mj *mirrorJob) watchMirror(ctx context.Context, cancelMirror context.Cance // hence ignore the event to avoid copying it. continue } + sourceContent.Retention = event.Type == EventCreatePutRetention mirrorURL.SourceContent = sourceContent if event.Size == 0 { targetClient, err := newClient(targetPath)