I need to create a .tgz archive of the following folder
pack | rest | vendor (folder) | ----index.php | ----info.log | another (folder) | ---index.php | ---info.log | ---somefile.someext | somefolder1 | somefoldern | somefiles.somexts
Just issuing an
exclude=index.php etc has unwanted consequences: vendor might in turn have a file bearing that name directly or in one of its sub folders. I haven't been able to establish from the documentation whether I can instruct tar to ignore all file contents in the rest folder but NOT the sub folders under it.