
파일 이관 시 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
- Today
- Yesterday
링크
TAG
- nodejs
- node.js
- Da
- openstack token issue
- wildfly
- Architecture
- 마이크로서비스 아키텍처
- SA
- SWA
- 오픈스택
- kubernetes
- git
- JEUS7
- OpenStack
- JBoss
- 마이크로서비스
- 아키텍처
- aa
- openstack tenant
- k8s
- MSA
- webtob
- API Gateway
- TA
- 쿠버네티스
- JEUS6
- apache
- aws
- Docker
- jeus
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함