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
-O, --organization whether or not this is an organization user
116
-
-R REPOSITORY, --repository REPOSITORY
119
+
-R, --repository REPOSITORY
117
120
name of repository to limit backup to
118
121
-P, --private include private repositories [*]
119
122
-F, --fork include forked repositories [*]
@@ -128,26 +131,25 @@ CLI Help output::
128
131
--releases include release information, not including assets or
129
132
binaries
130
133
--latest-releases NUMBER_OF_LATEST_RELEASES
131
-
include certain number of the latest releases;
132
-
only applies if including releases
133
-
--skip-prerelease skip prerelease and draft versions; only applies if including releases
134
+
include certain number of the latest releases; only
135
+
applies if including releases
136
+
--skip-prerelease skip prerelease and draft versions; only applies if
137
+
including releases
134
138
--assets include assets alongside release information; only
135
139
applies if including releases
136
-
--skip-assets-on [REPO ...]
137
-
skip asset downloads for these repositories (e.g.
138
-
--skip-assets-on repo1 owner/repo2)
139
-
--attachments download user-attachments from issues and pull requests
140
-
to issues/attachments/{issue_number}/ and
141
-
pulls/attachments/{pull_number}/ directories
142
-
--exclude [REPOSITORY [REPOSITORY ...]]
143
-
names of repositories to exclude from backup.
140
+
--skip-assets-on [SKIP_ASSETS_ON ...]
141
+
skip asset downloads for these repositories
142
+
--attachments download user-attachments from issues and pull
143
+
requests
144
144
--throttle-limit THROTTLE_LIMIT
145
145
start throttling of GitHub API requests after this
146
146
amount of API requests remain
147
147
--throttle-pause THROTTLE_PAUSE
148
148
wait this amount of seconds when API request
149
149
throttling is active (default: 30.0, requires
150
150
--throttle-limit to be set)
151
+
--exclude [EXCLUDE ...]
152
+
names of repositories to exclude
151
153
152
154
153
155
Usage Details
@@ -156,13 +158,13 @@ Usage Details
156
158
Authentication
157
159
--------------
158
160
159
-
**Password-based authentication** will fail if you have two-factor authentication enabled, and will `be deprecated<https://github.blog/2023-03-09-raising-the-bar-for-software-security-github-2fa-begins-march-13/>`_ by 2023 EOY.
161
+
GitHub requires token-based authentication for API access. Password authentication was `removed in November 2020<https://developer.github.com/changes/2020-02-14-deprecating-password-auth/>`_.
160
162
161
-
``--username`` is used for basic password authentication and separate from the positional argument ``USER``, which specifies the user account you wish to back up.
163
+
The positional argument ``USER``specifies the user or organization account you wish to back up.
162
164
163
-
**Classic tokens** are `slightly less secure <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic>`_ as they provide very coarse-grained permissions.
165
+
**Fine-grained tokens** (``-f TOKEN_FINE``) are recommended for most use cases, especially long-running backups (e.g. cron jobs), as they provide precise permission control.
164
166
165
-
If you need authentication for long-running backups (e.g. for a cron job) it is recommended to use **fine-grained personal access token** ``-f TOKEN_FINE``.
167
+
**Classic tokens** (``-t TOKEN``) are `slightly less secure <https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic>`_ as they provide very coarse-grained permissions.
0 commit comments