
我有一個包含 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::.