## Nexus 3.30 --> 3.38 마이그레이션 작업




## 대상 Nexus 3.38 - 기본 리포지토리 표시

## 소스 Nexus 3.30 - 예제 아티팩트 푸시 작업

- 설정 --> Create Repository 클릭 --> maven2 (hosted) 선택

- Name : java-dev
- Version policy : Release
- Layout policy : Permissive

- Deployment policy : Allow redeploy 후 --> Create Repository 클릭

- java-dev 리포지토리 생성

- 동일하게 3개 리포지토리 생성 (mulesoft-dev, python-dev, salesforce-dev)

- 소스 Nexus 3.30 - 예제 아티팩트 푸시 작업




- 푸쉬 테스트용 mulesoft.tar 파일 생성 (salesforce.tar 동일 생성)
: touch mulesoft
: tar -cvf mulesoft.tar mulesoft


- 푸쉬 테스트용 mulesoft.tar 파일 업로드 성공 (salesforce.tar 동일)



- (실습) 테스트용 파일 업로드 성공
# curl -v -u admin:'넥서스 패스워드' --upload-file nexus-3.48.0-01-unix.tar.gz http://10.50.0.199:8081/repository/chinna-app/


## 대상 Nexus 3.38 - DB내부에 Blob 백업해야 함. (구성요소와 구성 파일이 있음)

- 대상 Nexus에서 3가지를 백업해야함 (blobs , component , config)
- mkdir nexusbkp
- mv blobs/ nexusbkp/
- cd db/
- mv component/ ../nexusbkp/
- mv config/ ../nexusbkp/
## 소스 Nexus 3.30 서버에서 scp 로 --> 대상 Nexus 3.38 서버로 복사
1) scp -r blobs/ root@대상IP:/opt/sonatype-work/nexus3/

- 대상 Nexus 3.38 서버로 가서 디렉토리 권한 수정
: chown -R nexus:nexus blobs/


2) scp -r component/ root@대상IP:/opt/sonatype-work/nexus3/db/


- 대상 Nexus 3.38 서버로 가서 디렉토리 권한 수정
: chown -R nexus:nexus component/
3) scp -r config/ root@대상IP:/opt/sonatype-work/nexus3/db/


- 대상 Nexus 3.38 서버로 가서 디렉토리 권한 수정
: chown -R nexus:nexus config/

## 대상 Nexus 3.38 서버 재시작


- tail -f nexus.log 확인



https://www.youtube.com/watch?v=3xY34SWMt2Q
'[AWS-RDP] > Nexus' 카테고리의 다른 글
| [이슈해결] Configure EKS to use Nexus Private Docker Registry (HTTP/HTTPS) (0) | 2023.04.11 |
|---|
댓글