diff --git a/changelogs/unreleased/10526-Daniel-1600 b/changelogs/unreleased/10526-Daniel-1600 new file mode 100644 index 000000000..0900b4d79 --- /dev/null +++ b/changelogs/unreleased/10526-Daniel-1600 @@ -0,0 +1 @@ +Fix schedule create dropping backup type \ No newline at end of file diff --git a/pkg/cmd/cli/schedule/create.go b/pkg/cmd/cli/schedule/create.go index 03f5626fd..cba121f5d 100644 --- a/pkg/cmd/cli/schedule/create.go +++ b/pkg/cmd/cli/schedule/create.go @@ -163,6 +163,7 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { ItemOperationTimeout: metav1.Duration{Duration: o.BackupOptions.ItemOperationTimeout}, DataMover: o.BackupOptions.DataMover, SnapshotMoveData: o.BackupOptions.SnapshotMoveData.Value, + BackupType: api.BackupType(o.BackupOptions.BackupType), }, Schedule: o.Schedule, UseOwnerReferencesInBackup: &o.UseOwnerReferencesInBackup,