
85개의 하위 폴더가 있는 폴더가 있습니다. 사용자 정의 파일을 만들고 싶습니다 .tar
. 즉, 일부 폴더를 무시하고 싶습니다.
어떻게 해야 합니까?
답변1
몇 가지 방법으로 문서에서 다음 옵션을 확인하세요.
--exclude=PATTERN'
When performing operations, `tar' will skip files that match
PATTERN. *Note exclude::.
`--exclude-from=FILE'
`-X FILE'
Similar to `--exclude', except `tar' will use the list of patterns
in the file FILE. *Note exclude::.