https://github.com/psmiraglia/make-mirrors
Make a mirror of your GitHub repos to BitBucket
https://github.com/psmiraglia/make-mirrors
bitbucket github mirrored-repositories
Last synced: about 2 months ago
JSON representation
Make a mirror of your GitHub repos to BitBucket
- Host: GitHub
- URL: https://github.com/psmiraglia/make-mirrors
- Owner: psmiraglia
- Created: 2018-01-31T23:43:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-03T16:05:41.000Z (over 8 years ago)
- Last Synced: 2025-10-29T01:45:44.837Z (8 months ago)
- Topics: bitbucket, github, mirrored-repositories
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# make-mirrors
1. Obtain a [GitHub Personal Token] a [BitBucket App Password] and put
them in `settings.py` as `GH_TOKEN` and `BB_TOKEN` (or define them as
envvar). Put in `settings.py` (or define as envvar) also the
GitHub/BitBucket username (`GH_USER`/`BB_USER`) and the BitBucket
team (`BB_TEAM`).
2. Run it
a. Create a virtualenv and install the requirements
$ virtualenv -p python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
then
$ python gh2bb.py
b. Build the Docker image
$ docker build --tag psmiraglia/gh2bb .
and run a container
$ docker run -ti --rm --env-file settings.env psmiraglia/gh2bb
[GitHub Personal Token]: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line
[BitBucket App Password]: https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html