Skip to content

Commit a351cdc

Browse files
committed
Update README.rst to match 'github-backup -h'
1 parent 85e4399 commit a351cdc

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

README.rst

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ Usage
2929

3030
CLI Usage is as follows::
3131

32-
github-backup [-h] [-u USERNAME] [-p PASSWORD] [-t TOKEN]
32+
github-backup [-h] [-u USERNAME] [-p PASSWORD] [-t TOKEN] [--as-app]
3333
[-o OUTPUT_DIRECTORY] [-i] [--starred] [--all-starred]
3434
[--watched] [--followers] [--following] [--all]
3535
[--issues] [--issue-comments] [--issue-events] [--pulls]
36-
[--pull-comments] [--pull-commits] [--labels] [--hooks]
37-
[--milestones] [--repositories] [--releases] [--assets]
36+
[--pull-comments] [--pull-commits] [--pull-details]
37+
[--labels] [--hooks] [--milestones] [--repositories]
3838
[--bare] [--lfs] [--wikis] [--gists] [--starred-gists]
39-
[--skip-existing]
40-
[-L [LANGUAGES [LANGUAGES ...]]] [-N NAME_REGEX]
41-
[-H GITHUB_HOST] [-O] [-R REPOSITORY] [-P] [-F]
42-
[--prefer-ssh] [-v]
39+
[--skip-existing] [-L [LANGUAGES [LANGUAGES ...]]]
40+
[-N NAME_REGEX] [-H GITHUB_HOST] [-O] [-R REPOSITORY]
41+
[-P] [-F] [--prefer-ssh] [-v]
4342
[--keychain-name OSX_KEYCHAIN_ITEM_NAME]
4443
[--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT]
44+
[--releases] [--assets]
4545
USER
4646

4747
Backup a github account
@@ -57,36 +57,36 @@ CLI Usage is as follows::
5757
password for basic auth. If a username is given but
5858
not a password, the password will be prompted for.
5959
-t TOKEN, --token TOKEN
60-
personal access or OAuth token, or path to token
61-
(file://...)
60+
personal access, OAuth, or JSON Web token, or path to
61+
token (file://...)
62+
--as-app authenticate as github app instead of as a user.
6263
-o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
6364
directory at which to backup the repositories
6465
-i, --incremental incremental backup
6566
--starred include JSON output of starred repositories in backup
66-
--all-starred include starred repositories in backup
67-
--watched include watched repositories in backup
67+
--all-starred include starred repositories in backup [*]
68+
--watched include JSON output of watched repositories in backup
6869
--followers include JSON output of followers in backup
6970
--following include JSON output of following users in backup
70-
--all include everything in backup
71+
--all include everything in backup (not including [*])
7172
--issues include issues in backup
7273
--issue-comments include issue comments in backup
7374
--issue-events include issue events in backup
7475
--pulls include pull requests in backup
7576
--pull-comments include pull request review comments in backup
7677
--pull-commits include pull request commits in backup
78+
--pull-details include more pull request details in backup [*]
7779
--labels include labels in backup
7880
--hooks include hooks in backup (works only when
7981
authenticated)
8082
--milestones include milestones in backup
8183
--repositories include repository clone in backup
82-
--releases include repository releases' information without assets or binaries
83-
--assets include assets alongside release information; only applies if including releases
8484
--bare clone bare repositories
8585
--lfs clone LFS repositories (requires Git LFS to be
86-
installed, https://git-lfs.github.com)
86+
installed, https://git-lfs.github.com) [*]
8787
--wikis include wiki clone in backup
88-
--gists include gists in backup
89-
--starred-gists include starred gists in backup
88+
--gists include gists in backup [*]
89+
--starred-gists include starred gists in backup [*]
9090
--skip-existing skip project if a backup directory exists
9191
-L [LANGUAGES [LANGUAGES ...]], --languages [LANGUAGES [LANGUAGES ...]]
9292
only allow these languages
@@ -97,8 +97,8 @@ CLI Usage is as follows::
9797
-O, --organization whether or not this is an organization user
9898
-R REPOSITORY, --repository REPOSITORY
9999
name of repository to limit backup to
100-
-P, --private include private repositories
101-
-F, --fork include forked repositories
100+
-P, --private include private repositories [*]
101+
-F, --fork include forked repositories [*]
102102
--prefer-ssh Clone repositories using SSH instead of HTTPS
103103
-v, --version show program's version number and exit
104104
--keychain-name OSX_KEYCHAIN_ITEM_NAME
@@ -107,6 +107,10 @@ CLI Usage is as follows::
107107
--keychain-account OSX_KEYCHAIN_ITEM_ACCOUNT
108108
OSX ONLY: account field of password item in OSX
109109
keychain that holds the personal access or OAuth token
110+
--releases include release information, not including assets or
111+
binaries
112+
--assets include assets alongside release information; only
113+
applies if including releases
110114

111115

112116
The package can be used to backup an *entire* organization or repository, including issues and wikis in the most appropriate format (clones for wikis, json files for issues).

0 commit comments

Comments
 (0)