Dumper CLI is an utility to dump repositories from github and bitbucket.
dumper-cli
allows you to quickly dump repositories from github or bitbucket without going over every repository and cloning that manually.
Example:
Bitbucket
./dumper-cli dump bitbucket -u USERNAME -d DESTINATION_FOLDER -t APP_PASSWORD
Github
./dumper-cli dump github -u USERNAME -d DESTINATION_FOLDER -t PERSONAL_ACCESS_TOKEN
Download executable from Relase page for your platform.
Github
To get personal access token for github account you need to:
-
Go to Settings
-
Open Developer Settings (bottom left-hand side)
-
Personal access tokens and generate new one (classic)
-
Select scopes (we need these three as we dump all repositories based on projects/user/repo):
- repo
- user
- project
Bitbucket
To get application password for bitbucket account you need to:
-
Go to Personal Bitbucket Settings
-
App passwords menu item
-
Create app password
-
For Permissions:
- Account -> Read
- Workspace membership -> Read
- Projects -> Read
- Repositories -> Automatically should be Read
To get username you need to:
- Go to Personal Bitbucket Settings
- Account settings
- Bitbucket profile settings -> copy Username
./dumper-cli dump
|
--> github | bitbucket
|
--> -u USERNAME
--> -d destination of dump
--> -t app password or access token
--> -m clone mode (all-branches|default-branch)