[gitlab] 백업하기(backup)

2023. 1. 6. 19:08·개발/Git
728x90

GitLab 백업(버전별)

## GitLab 12.2 이상
sudo gitlab-backup create

## GitLab 12.1 이전 버전
gitlab-rake gitlab:backup:create

백업을 실행하면 "/var/opt/gitlab/backups "에 백업폴더가 생성되며, 백업 완료 후 생성한 파일을 알려준다.

백업파일명은 <timestamp>_<백업날짜>_<버전>_gitlab_backup.tar로 생성된다.

수동 업데이트

백업완료 후 Warning: 메세지가 뜬다. 이것은 중요한 설정같은것은 자동백업이 안되니, 수동으로 백업하라는 뜻으로

수동으로 백업해야하는 설정파일들은 "/etc/gitlab/"에 있다.

Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.

 

참조

https://docs.gitlab.com/ee/raketasks/backup_gitlab.html

 

Back up GitLab | GitLab

Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.

docs.gitlab.com

 

 

728x90
저작자표시 비영리 변경금지 (새창열림)

'개발 > Git' 카테고리의 다른 글

[Git/Gitlab- 오류] 502 -GitLab is taking too much time to respond.  (0) 2023.10.31
[gitlab] git-runner 설치 및 등록  (1) 2023.05.16
[git] .gitignore 변경 후 반영하기  (0) 2022.12.01
[gitlab] gitlab 도메인 변경  (0) 2021.01.19
[git] git-ssh생성하여 연동 하기  (0) 2021.01.11
'개발/Git' 카테고리의 다른 글
  • [Git/Gitlab- 오류] 502 -GitLab is taking too much time to respond.
  • [gitlab] git-runner 설치 및 등록
  • [git] .gitignore 변경 후 반영하기
  • [gitlab] gitlab 도메인 변경
호이호이209
호이호이209
이것저것 기록하는 메모장
    250x250
  • 호이호이209
    R=VD
    호이호이209
    • R=VD전체글 (83)
      • 개발 (63)
        • Linux (19)
        • 머신러닝 (10)
        • Git (6)
        • Python (9)
        • 프로그래밍 언어 (2)
        • Docker (5)
        • ETC (12)
      • 일상기록 (20)
        • 여행 (5)
        • 일상-이모저모 (8)
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
호이호이209
[gitlab] 백업하기(backup)
상단으로

티스토리툴바