/
(7)-3.Bitbucket server Repository 위치 변경

(7)-3.Bitbucket server Repository 위치 변경

테스트 환경: CentOS 7, Windows 2012, Bitbucket 5.2.2

(1) Symbolic link로 처리하는 방안

  1. Bitbucket service 중지
    1. /opt/atlassian/bitbucket/5.2.2/bin/start-bitbucket.sh

  2. 경로위치 복사 및 링크 생성
    1. 원본: /var/atlassian/application-data/bitbucket/
    2. 원본을 특정 dir로 복사, 단 생성 계정 권한/그룹으로 접근 가능한 폴더로 이동해야 함
    3. 복사한 다음 원본 폴더 이름 변경(문제 시 원복을 위해 대비)
    4. 원본 위치에 동일한 이름의 Symbolic link 생성을 통해 이동한 위치에 경로 지정
    5. link파일의 권한/그룹을 Bitbucket 폴더와 동일하게 지정

  3. Bitbucket service 시작
    1. /opt/atlassian/bitbucket/5.2.2/bin/start-bitbucket.sh

  4. 주의사항
    1. 변경 시 Home dir에 있는 모든 정보를 복사해야 하며, 하위의 Repository 등 일부 데이터만 옮길 수 없음에 유의

 

(2) Bitbucket Home directory 변경 (공식 권장)

  1. url: https://confluence.atlassian.com/bitbucketserver/bitbucket-server-home-directory-776640890.html

  2. 기본 Home dir (/var/atlassian/application-data/bitbucket/)을 다른 Dir로 이동/복사
    1. 복사하는 위치에 권한을 반드시 확인
    2. 기본 설치 계정(atlbitbucket)의 접근이 가능해야 함

  3. 서비스 중지
    1. Linux: /opt/atalssian/nitbucket/5.2.2/bin/stop-bitbucket.sh
    2. Windows: 제어판 - 관리도구 - 서비스 - Bitbucket 서비스 중지

  4. Home dir 설정 변경
    1. Windows: <Bitbucket Server installation directory>\bin\set-bitbucket-home.bat
    2. Linux and Mac: <Bitbucket Server installation directory>/bin/set-bitbucket-home.sh

  5. 서비스 재 시작
    1. Linux: /opt/atalssian/nitbucket/5.2.2/bin/start-bitbucket.sh
    2. Windows: 제어판 - 관리도구 - 서비스 - Bitbucket 서비스 시작

Related content

Bitbucket Linux Installation
Bitbucket Linux Installation
More like this
Bitbucket 저장소 가져오기
Bitbucket 저장소 가져오기
More like this
저장소 설정
저장소 설정
More like this
Bitbucket 서버 DIY 백업
Bitbucket 서버 DIY 백업
More like this
Bitbucket 백업 클라이언트(Backup Client) 사용 가이드
Bitbucket 백업 클라이언트(Backup Client) 사용 가이드
More like this