
파일 이관 시 log나 불필요한 tmp, binary까지 압축되는 경우가 있다. 이럴 경우 특정 경로나 파일을 제외한 압축 방식이 필요하며 아래와 같은 시나리오로 적용이 가능하다. 1) tar 실행 시 -X 옵션으로 Exclude 파일 또는 디렉토리를 지정 tar -cvf test.tar -X [exclude_list_file] ./test 2) 테스트 시나리오 a) 특정 디렉토리 하위의 파일 또는 디렉토리 리스트 확인 : find ./test -name "*" b) exclude_list_file 작성 : vi exclude.txt c) 압축 실행 : tar -cvf test.tar -X exclude.txt ./test d) 압축 결과 확인 : tar -tvf test.tar
⑦ IT Sample /ⓒ Command
2019. 5. 23. 16:24
- Total
- 1,598,648
- Today
- 374
- Yesterday
- 1,473
링크
TAG
- 마이크로서비스 아키텍처
- webtob
- OpenStack
- kubernetes
- openstack tenant
- wildfly
- aws
- git
- JEUS7
- apache
- 오픈스택
- JBoss
- aa
- 마이크로서비스
- jeus
- SA
- TA
- Architecture
- 쿠버네티스
- SWA
- k8s
- MSA
- API Gateway
- nodejs
- Da
- node.js
- JEUS6
- 아키텍처
- Docker
- openstack token issue