1.  QNAP nfs 설정

 

2. 리눅스에서 QNAP 서버 마운트

 

sudo vi /etc/fstab

 

3. 자동 마운트를 위해 fstab 수정

192.168.2.32:/Gitlab /mnt/Gitlab nfs defaults 0 0

 

4. 마운트하기

 

sudo mount -a

 

5. gitlab 설정 파일 열기

sudo vi /etc/gitlab/gitlab.rb

 

6. gitlab.rb 수정

백업후 로컬폴더로 업로드 하지 않고 백업폴더를 마운트된 디렉토리로 지정해버림

 

gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/mnt/Gitlab"

gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/mnt/Gitlab"

 

백업 후 업로드 할 경우 아래 참조

docs.gitlab.com/ee/raketasks/backup_restore.html#uploading-to-locally-mounted-shares

 

Back up and restore GitLab | GitLab

Back up and restore GitLab GitLab provides Rake tasks for backing up and restoring GitLab instances. An application data backup creates an archive file that contains the database, all repositories and all attachments. You can only restore a backup to exact

docs.gitlab.com

7. 재설정

sudo gitlab-ctl reconfigure

 

8. 백업하기

sudo gitlab-backup create

 

설정파일은 백업되지 않음으로 수정백업 해야함.

'Linux' 카테고리의 다른 글

gitlab-ee 백업파일 docker로 간단하게 복원하기  (0) 2020.09.08
서버 리눅스를 재설치.  (0) 2008.01.02
xinetd 설치하기  (0) 2007.03.27
부트로더 GRUB에서의 root 암호 변경  (0) 2007.03.13
하드디스크 추가하기  (0) 2007.03.05

+ Recent posts