Dumper CLI
Dumper CLI is an utility to dump repositories from github and bitbucket.
Intro
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
Get executable
Download executable from Relase page for your platform.
Prerequisite
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):
Bitbucket
To get application password for bitbucket account you need to:
To get username you need to:
- Go to Personal Bitbucket Settings
- Account settings
- Bitbucket profile settings -> copy Username
CLI options
./dumper-cli dump
|
--> github | bitbucket
|
--> -u USERNAME
--> -d destination of dump
--> -t app password or access token
--> -m clone mode (all-branches|default-branch)