Simple tool to list all your bitbucket workspaces and clone all repositories associated with these workspaces.
pip install .
or by installing it via pip install bucketcloner
. Minimum required python version is 3.8.bucketcloner -u <username> -p <apppassword> workspace
This lists all workspaces, including your personal workspace, where you have access.
You can clone all repositories of all workspaces by simply calling
bucketcloner -u <username> -p <password> clone
This clones all repositories of all workspaces into the folders workspace/repository
relative to the current directory.
To select specific workspace(s), add the -w
option with workspace slug names separated by commas
bucketcloner -u <username> -p <password> -w workspace1,workspace2 clone
All existing repositories in the folders will be deleted and cloned again. To just skip existing repositories, add --skip-existing
flag.
bucketcloner -u <username> -p <password> -w workspace1,workspace2 --skip-existing clone
The example.ipynb
includes an example how to read the workspaces and download the repositories from within python.