This Python script will download all of your Git repositories from a Bitbucket workspace.
If a repository does not exist locally, the repo will be downloaded to the target directory. If a
repository already exists locally, git remote update
will be executed.
pip install pybitbackup
Download all projects from a BitBucket workspace into the current folder:
pybitbackup <workspace> --user <Username> --key <App Key>
App Key and Username a required to access the Bitbucket API. You can easily generate a new App Key at your personal settings page in Bitbucket. Workspace could be your own username to download your personal repositories or one of the team workspaces. To download only repositories of a certain project, you can specify the project name.