From 0bba390aa2eea21ea3e791361ae8b37468dc3e64 Mon Sep 17 00:00:00 2001 From: Danny Date: Fri, 24 Feb 2023 15:11:01 -0500 Subject: [PATCH] CLI: Sharepoint: Set Libraries to default (#2634) Issue #2631: library backup set to the default rather than all data. - verified libraries is the default call in cli - verified other categories can still be called if they asked for explicitly. --- #### Does this PR need a docs update or release note? #### Type of change - [x] :sunflower: Feature #### Issue(s) *closes #2631 #### Test Plan - [x] :muscle: Manual --- src/cli/backup/sharepoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/backup/sharepoint.go b/src/cli/backup/sharepoint.go index 03cca7385..2b64b524e 100644 --- a/src/cli/backup/sharepoint.go +++ b/src/cli/backup/sharepoint.go @@ -335,8 +335,9 @@ func includeAllSitesWithCategories(categories []string) *selectors.SharePointBac } func addCategories(sel *selectors.SharePointBackup, cats []string) *selectors.SharePointBackup { + // Issue #2631: Libraries are the only supported feature for SharePoint at this time. if len(cats) == 0 { - sel.Include(sel.AllData()) + sel.Include(sel.Libraries(selectors.Any())) } for _, d := range cats {