From 185a95585a95c04e7983d406445e0f3d371d4c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Thu, 14 Sep 2023 18:14:06 +0800 Subject: [PATCH] Set data mover related properties for schedule (#6824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set data mover related properties for schedule Fixes #6820 Signed-off-by: Wenkai Yin(尹文开) --- pkg/cmd/cli/schedule/create.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/cli/schedule/create.go b/pkg/cmd/cli/schedule/create.go index dd19c1c3cd..c24ebd6383 100644 --- a/pkg/cmd/cli/schedule/create.go +++ b/pkg/cmd/cli/schedule/create.go @@ -153,6 +153,8 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { OrderedResources: orders, CSISnapshotTimeout: metav1.Duration{Duration: o.BackupOptions.CSISnapshotTimeout}, ItemOperationTimeout: metav1.Duration{Duration: o.BackupOptions.ItemOperationTimeout}, + DataMover: o.BackupOptions.DataMover, + SnapshotMoveData: o.BackupOptions.SnapshotMoveData.Value, }, Schedule: o.Schedule, UseOwnerReferencesInBackup: &o.UseOwnerReferencesInBackup,