diff --git a/changelogs/unreleased/2776-ashish-amarnath b/changelogs/unreleased/2776-ashish-amarnath new file mode 100644 index 00000000000..9405b5b8cb7 --- /dev/null +++ b/changelogs/unreleased/2776-ashish-amarnath @@ -0,0 +1 @@ +Pass default-volumes-to-restic flag from create schedule to backup diff --git a/pkg/cmd/cli/schedule/create.go b/pkg/cmd/cli/schedule/create.go index 3a8dfd1d1b6..88714404739 100644 --- a/pkg/cmd/cli/schedule/create.go +++ b/pkg/cmd/cli/schedule/create.go @@ -133,6 +133,7 @@ func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error { TTL: metav1.Duration{Duration: o.BackupOptions.TTL}, StorageLocation: o.BackupOptions.StorageLocation, VolumeSnapshotLocations: o.BackupOptions.SnapshotLocations, + DefaultVolumesToRestic: o.BackupOptions.DefaultVolumesToRestic.Value, }, Schedule: o.Schedule, },