diff --git a/pkg/restore/actions/csi/pvc_action.go b/pkg/restore/actions/csi/pvc_action.go index 1f75889f94..19c687e8bf 100644 --- a/pkg/restore/actions/csi/pvc_action.go +++ b/pkg/restore/actions/csi/pvc_action.go @@ -481,12 +481,7 @@ func newDataDownload( }, } if restore.Spec.UploaderConfig != nil { - dataDownload.Spec.DataMoverConfig = make(map[string]string) - if boolptr.IsSetToTrue(restore.Spec.UploaderConfig.WriteSparseFiles) { - dataDownload.Spec.DataMoverConfig[uploaderUtil.WriteSparseFiles] = "true" - } else { - dataDownload.Spec.DataMoverConfig[uploaderUtil.WriteSparseFiles] = "false" - } + dataDownload.Spec.DataMoverConfig = uploaderUtil.StoreRestoreConfig(restore.Spec.UploaderConfig) } return dataDownload }