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
{{ message }}
Repository navigation
Commit 477d314
Browse filesBrowse the repository at this point in the historyBrowse files
Rachel Dowavic
committed
Add Bitbucket API token support
Bitbucket has deprecated app passwords (disabled after June 9, 2026).
This adds support for the new API tokens via the BITBUCKET_TOKEN env
var, falling back to BITBUCKET_PASSWORD for backward compatibility.
Fixes#197
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ If you are on MacOS, a community member has created a [Homebrew formula](https:/
59
59
60
60
``gitbackup`` requires a [GitHub API access token](https://github.com/blog/1509-personal-api-tokens) for
61
61
backing up GitHub repositories, a [GitLab personal access token](https://gitlab.com/profile/personal_access_tokens)
62
-
for GitLab repositories, a username and [app password](https://bitbucket.org/account/settings/app-passwords/) for
62
+
for GitLab repositories, a username and [API token](https://support.atlassian.com/bitbucket-cloud/docs/api-tokens/) (or [app password](https://bitbucket.org/account/settings/app-passwords/)) for
63
63
Bitbucket repositories, or a [Forgejo access token][https://docs.codeberg.org/advanced/access-token/] for Forgejo.
64
64
65
65
You can supply the tokens to ``gitbackup`` using ``GITHUB_TOKEN``, ``GITLAB_TOKEN``, or ``FORGEJO_TOKEN`` environment
66
-
variables respectively, and the Bitbucket credentials with ``BITBUCKET_USERNAME`` and ``BITBUCKET_PASSWORD``.
66
+
variables respectively, and the Bitbucket credentials with ``BITBUCKET_USERNAME`` and either ``BITBUCKET_TOKEN`` or ``BITBUCKET_PASSWORD``.
67
67
68
68
### GitHub Specific oAuth App Flow
69
69
@@ -84,11 +84,19 @@ time you run it, it will ask you for the keyring password and retrieve the token
84
84
85
85
#### Bitbucket
86
86
87
-
For the App password, the following permissions are required:
87
+
**API tokens** (recommended):
88
+
89
+
-`read:user:bitbucket`
90
+
-`read:workspace:bitbucket`
91
+
-`read:repository:bitbucket`
92
+
93
+
**App passwords** (deprecated, disabled after June 9, 2026):
88
94
89
95
-`Account:Read`
90
96
-`Repositories:Read`
91
97
98
+
**Note:** Bitbucket has deprecated app passwords. Use [API tokens](https://support.atlassian.com/bitbucket-cloud/docs/api-tokens/) instead by setting the ``BITBUCKET_TOKEN`` environment variable.
99
+
92
100
#### GitHub
93
101
94
102
-`repo`: Reading repositories, including private repositories
0 commit comments