https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud
Requirements:
It is recommended to run this script as root
directly on your Bitbucket Server (Linux only)
Requires curl, git, jq, bc, openssl
Run install_requirements.sh
to install these packages
The migration script may work on Mac OS but this has not been tested so run at your own risk!
YOU MUST AGREE TO ALL TERMS IN APACHE LICENSE 2.0
THIS WORK IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
YOU AGREE TO ACCEPT ALL LIABILITY IN USING THIS WORK AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH RUNNING THIS WORK
- Create Bitbucket Cloud Account and Setup Team
- Create OAuth Consumer in Bitbucket Cloud with Full Permisions to Team Account
- Create Admin or System Admin level user for migration on your Bitbucket Server
- Set all required variables in the script
migrate.sh
then run./migrate.sh
- Get list of all Projects and Repos from Bitbucket Server
- Create new Project in Bitbucket Cloud
- Create new Repo in Cloud
- Backup each Project Repo and all branches locally using git
- Add new git remote cloud, push all branches to cloud
- Send email to git committers when each repo is migrated (optional)
Have a bug or a feature request? The issue tracker is the preferred channel for bug reports, feature requests and submitting pull requests. If your problem or idea is not addressed yet, please open a new issue.
Shawn Woodford
Code and Documentation Copyright 2018 Shawn Woodford. Code released under the Apache License 2.0.