Migrating Bitbucket on-prem to Bitbucket (Cloud)
Asked by Vincent Leal:

Hello,

I am seeking out any information I can find on migrating our Bitbucket instance from an on-premise Linux box to Bitbucket's cloud application. This instance is currently running as a docker container atlassian/bitbucket-server.

Is there anyone out there that may have documentation or steps on how to get this process started? Is it even possible. Forgive me if this is a silly question, I do not use the product, but will play a part in the migration.


Answers:
author: Robert Wen_ReleaseTEAM_
body: hello [@Vincent Leal](/t5/user/viewprofilepage/user-id/4991781) ! Welcome to the Atlassian Community!

Atlassian provides a tool (Bitbucket Cloud Migration Assistant) to assist.

Documentation is here.

<https://support.atlassian.com/migration/docs/use-the-bitbucket-cloud-migration-assistant-to-migrate/>

comments: author: Vincent Leal
body: Hello,

Thank you for replying. Out of curiosity, with this migration tool - are we able to "copy" data without "moving" keeping data within both locations?

Also, what has prompted this move is us not being able to log in with LDAP - there is some communication issues here. I do have ssh access to the Linux server - are we able to bypass LDAP and log in with a system account? If so, how would we do that?

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/207339i81C4D2FA37A70C96/image-size/large?v=v2&px=999 "image.png")


author: Robert Wen_ReleaseTEAM_
body: Bitbucket allows you to log into the application and authenticates against either an internal user directory or externally-managed user directories (e.g. LDAP, Crowd, etc).

You can't use the ssh credentials you have for the server itself to log into the application.


author: Vincent Leal
body: Robert,

I understand that SSH/OS account credentials are separate from Bitbucket's user list. With me having root access to the system Bitbucket is running on - is there a way for me to access the following:

- Temporarily remove LDAP authentication or run both LDAP and system accounts side by side?

- Change the local administrator's account for Bitbucket, not the Linux system itself?

Ultimately if I'm able to bypass LDAP, use a system account and log into Bitbucket's GUI i would feel much better about starting the migration to the cloud.


author: Robert Wen_ReleaseTEAM_
body: The original administrator account used to configure Bitbucket at installation is kept at the internal Bitbucket user list. Authenticating with that list still works, even with LDAP enabled (I think).


author: Vincent Leal
body: Thanks Robert,

This is one of my hurdles - i did not set this system up, but again i have root on the server. is there any configuration files where i can find the original administrator login information on a linux system?


author: Vincent Leal
body: Bumping -

Would it be possible to just reset the bitbucket user account password via linux terminal to use it as a user to login to bitbucket without LDAP?

comments: author: Robert Wen_ReleaseTEAM_
body: [@Vincent Leal](/t5/user/viewprofilepage/user-id/4991781)

I don't think so only because user information for Bitbucket is stored on a database. This includes users and passwords on the internal user directory.


Tags: bitbucket-cloud

cloud