Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud
Migrate Atlassian Bitbucket Server to Bitbucket Cloud
https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud
atlassian atlassian-bitbucket bash bitbucket bitbucket-api bitbucket-cloud bitbucket-server cloud git linux migrate migration server stash
Last synced: 3 months ago
JSON representation
Migrate Atlassian Bitbucket Server to Bitbucket Cloud
- Host: GitHub
- URL: https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud
- Owner: swoodford
- License: apache-2.0
- Created: 2018-08-28T18:03:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T20:24:30.000Z (almost 6 years ago)
- Last Synced: 2024-11-02T06:30:57.519Z (3 months ago)
- Topics: atlassian, atlassian-bitbucket, bash, bitbucket, bitbucket-api, bitbucket-cloud, bitbucket-server, cloud, git, linux, migrate, migration, server, stash
- Language: Shell
- Size: 52.7 KB
- Stars: 16
- Watchers: 4
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: docs/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Migrate Atlassian Bitbucket Server to Bitbucket Cloud
[![Build Status](https://travis-ci.org/swoodford/migrate_bitbucket_server_to_bitbucket_cloud.svg?branch=master)](https://travis-ci.org/swoodford/migrate_bitbucket_server_to_bitbucket_cloud)
[https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud](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!#### TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION:
YOU MUST AGREE TO ALL TERMS IN [APACHE LICENSE 2.0](https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud/blob/master/LICENSE.md)
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### Steps for use:
1. Create Bitbucket Cloud Account and Setup Team
2. Create OAuth Consumer in Bitbucket Cloud with Full Permisions to Team Account
3. Create Admin or System Admin level user for migration on your Bitbucket Server
4. Set all required variables in the script [migrate.sh](migrate.sh) then run `./migrate.sh`### Migration process works in the following way:
1. Get list of all Projects and Repos from Bitbucket Server
2. Create new Project in Bitbucket Cloud
3. Create new Repo in Cloud
4. Backup each Project Repo and all branches locally using git
5. Add new git remote cloud, push all branches to cloud
6. Send email to git committers when each repo is migrated (optional)#### Or migration can be done in phases with specific projects and repos (see notes in script)
### Post migration:
1. Update many local machine git repo URLs to Bitbucket Cloud URLs by running [update-git-repo-urls.sh](update-git-repo-urls.sh)## Bugs and feature requests
Have a bug or a feature request? The [issue tracker](https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud/issues) 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](https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud/issues/new).## Creator
**Shawn Woodford**
-
-## Copyright and License
Code and Documentation Copyright 2018 Shawn Woodford.
Code released under the [Apache License 2.0](https://github.com/swoodford/migrate_bitbucket_server_to_bitbucket_cloud/blob/master/LICENSE.md).