|
29 | 29 |
|
30 | 30 | CLI Usage is as follows:: |
31 | 31 |
|
32 | | - github-backup [-h] [-u USERNAME] [-p PASSWORD] [-t TOKEN] [--as-app] |
| 32 | + github-backup [-h] [-u USERNAME] [-p PASSWORD] |
| 33 | + [-t TOKEN_CLASSIC] [-f TOKEN_FINE] [--as-app] |
33 | 34 | [-o OUTPUT_DIRECTORY] [-i] [--starred] [--all-starred] |
34 | 35 | [--watched] [--followers] [--following] [--all] |
35 | 36 | [--issues] [--issue-comments] [--issue-events] [--pulls] |
@@ -57,7 +58,9 @@ CLI Usage is as follows:: |
57 | 58 | -p PASSWORD, --password PASSWORD |
58 | 59 | password for basic auth. If a username is given but |
59 | 60 | not a password, the password will be prompted for. |
60 | | - -t TOKEN, --token TOKEN |
| 61 | + -f TOKEN_FINE, --token-fine TOKEN |
| 62 | + fine-grained personal access token |
| 63 | + -t TOKEN_CLASSIC, --token-classic TOKEN |
61 | 64 | personal access, OAuth, or JSON Web token, or path to |
62 | 65 | token (file://...) |
63 | 66 | --as-app authenticate as github app instead of as a user. |
@@ -160,13 +163,13 @@ Backup all repositories, including private ones:: |
160 | 163 | export ACCESS_TOKEN=SOME-GITHUB-TOKEN |
161 | 164 | github-backup WhiteHouse --token $ACCESS_TOKEN --organization --output-directory /tmp/white-house --repositories --private |
162 | 165 |
|
163 | | -Backup a single organization repository with everything else (wiki, pull requests, comments, issues etc):: |
| 166 | +Use a fine-grained access token to backup a single organization repository with everything else (wiki, pull requests, comments, issues etc):: |
164 | 167 |
|
165 | 168 | export ACCESS_TOKEN=SOME-GITHUB-TOKEN |
166 | 169 | ORGANIZATION=docker |
167 | 170 | REPO=cli |
168 | 171 | # e.g. git@github.com:docker/cli.git |
169 | | - github-backup $ORGANIZATION -P -t $ACCESS_TOKEN -o . --all -O -R $REPO |
| 172 | + github-backup $ORGANIZATION -P -f $ACCESS_TOKEN -o . --all -O -R $REPO |
170 | 173 |
|
171 | 174 | Testing |
172 | 175 | ======= |
|
0 commit comments