diff --git a/src/cli/export/sharepoint.go b/src/cli/export/sharepoint.go index e2be0b49b..08cc0dbe0 100644 --- a/src/cli/export/sharepoint.go +++ b/src/cli/export/sharepoint.go @@ -7,6 +7,7 @@ import ( "github.com/alcionai/corso/src/cli/flags" "github.com/alcionai/corso/src/cli/utils" + "github.com/alcionai/corso/src/pkg/selectors" ) // called by export.go to map subcommands to provider-specific handling. @@ -94,6 +95,9 @@ func exportSharePointCmd(cmd *cobra.Command, args []string) error { sel := utils.IncludeSharePointRestoreDataSelectors(ctx, opts) utils.FilterSharePointRestoreInfoSelectors(sel, opts) + // Exclude lists from exports since they are not supported yet. + sel.Exclude(sel.Lists(selectors.Any())) + return runExport( ctx, cmd, diff --git a/src/cli/restore/sharepoint.go b/src/cli/restore/sharepoint.go index 3922add0e..3fc3ed0e5 100644 --- a/src/cli/restore/sharepoint.go +++ b/src/cli/restore/sharepoint.go @@ -7,6 +7,7 @@ import ( "github.com/alcionai/corso/src/cli/flags" "github.com/alcionai/corso/src/cli/utils" "github.com/alcionai/corso/src/pkg/dttm" + "github.com/alcionai/corso/src/pkg/selectors" ) // called by restore.go to map subcommands to provider-specific handling. @@ -94,6 +95,9 @@ func restoreSharePointCmd(cmd *cobra.Command, args []string) error { sel := utils.IncludeSharePointRestoreDataSelectors(ctx, opts) utils.FilterSharePointRestoreInfoSelectors(sel, opts) + // Exclude lists from restore since they are not supported yet. + sel.Exclude(sel.Lists(selectors.Any())) + return runRestore( ctx, cmd,