Example
/path/to/tarFolder
/path/to/tarFolder/exclude1
/path/to/tarFolder/exclude2
/path/to/tarFolder/a/exclude3
$ cd /path/to
$ tar -cvpf tarFolder.tar tarFolder --exclude="tarFolder/exclude1/*" --exclude="tarFolder/exclude2/*" --exclude="tarFolder/a/exclude3/*"
PS : --exclude="tarFolder/exclude1/*" <--一定要是相對路徑 & 使用雙引號
沒有留言:
張貼留言