You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To backup all projects you either own or are a member of which have their [visibility](https://docs.gitlab.com/ce/api/projects.html#project-visibility-level) set to
Copy file name to clipboardExpand all lines: main.go
+11-2
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import (
6
6
"fmt"
7
7
"log"
8
8
"sync"
9
+
"strings"
9
10
"time"
10
11
11
12
"github.com/google/go-github/v34/github"
@@ -46,6 +47,7 @@ func main() {
46
47
47
48
// GitHub specific flags
48
49
githubRepoType:=flag.String("github.repoType", "all", "Repo types to backup (all, owner, member, starred)")
50
+
githubNamespaceWhitelistString:=flag.String("github.namespaceWhitelist", "", "Organizations/Users from where we should clone (separate each value by a comma: 'user1,org2')")
49
51
50
52
githubCreateUserMigration:=flag.Bool("github.createUserMigration", false, "Download user data")
51
53
githubCreateUserMigrationRetry:=flag.Bool("github.createUserMigrationRetry", true, "Retry creating the GitHub user migration if we get an error")
0 commit comments