페이지 트리



Backup

ThinBackup 설치

Backup을 하기 위해 ThinBackup Plugin을 설치한다.

  • Jenkins 관리 > 플러그인 관리

설치 기능 탭 선택 우측의 필터란에 backup 이라고 입력 후 ThinBackup 체크 하여 재시작 없이 설치하기 버튼 클릭 한다.

ThinBackup 설정

ThinBackup을 통해 백업 설정을 위해 Jenkins 관리 > ThinBackup 선택한다.

설정을 위해 Settings를 클릭한다.

Backup 설정은 다음 정보를 참고하여 설정을 수행한다.

  • Backup Directory : ex) /home/backup
  • Backup schedule for full backups : * * * * * command to execute[*minute(0-59),*hour(0-23),*day(1-31),*month(1-12),*day of week(0-6 sunday to saturday)
  • Backup schedule for differential backups : 증분백업은 풀 백업 이후 수정된 전체 파일만 백업 합니다.
  • Max number of backup sets : 백업 세트의 최대 수
  • Files excluded from backup : 백업에서 제외 된 파일
  • Wait until Jenkins/Hudson is idle to perform a backup : 백업을 수행하기 위해 Jenkins / Hudson이 idle 상태가 될 때까지 기다립니다.
    > Force Jenkins to quiet mode after specified minutes : 지정한 시간이 지난 후 Jenkins는 자동모드로 된다
  • Backup build results : 빌드 결과 백업
  • Backup build archive : 아카이브 빌드 백업
  • Backup only builds marked to keep : 백업만 유지되도록 표시된 빌드
  • Backup 'userContent' folder : userContent 폴더 백업
  • Backup next build number file : 다음 빌드 번호 파일 백업
  • Backup plugins archives : 아카이브 플러그인 백업
  • Backup additional files : 추가 파일 백업
    > Files included in backup (regular expression) : 백업에 포함 된 파일
  • Clean up differential backups : 증분 백업 정리
  • Move old backups to ZIP files : 이전 백업 파일을 ZIP 파일로 이동

Backup 시작

백업을 시작하기 위해 Backup Now 버튼을 클릭 한다.

Restore

백업된 파일을 복원하기 위해 Restore 버튼을 클릭 한다.

Restore Options 설정 후 Restore 버튼을 클릭 한다.

  • restore backup from : 복원 시점
  • Restore next build number file (if found in backup) : 다음 빌드 번호 파일 복원
  • Restore plugins : 플러그인 복원

Jenkins 관리 > System Log 확인

모든 Jenkins 로그 클릭 한다.

Restore가 완료 되었음을 확인 할 수 있다.

  • 레이블 없음