[CLUG-tech] recursive tar
zoltans at geograph.co.za
Thu Mar 8 09:16:22 SAST 2007
What would be the most compact way to recursively pick out and tar up
files with a specific extension?
# runs daily backups for project
$TAR cfz /home/data/tarzGW0_`date +%Y%m%d` */*.prj
So, I have a top-level directory within which are deeper directories
(possibly with deeper directories) and I want to back up all *.prj
files, keeping their directory names relative to my top-level directory.
The top-level directory does not have any .prj files
tar with --recursive (supposed default) does not help.
Geograph (Pty) Ltd.
P.O. Box 31255, Tokai 7966, South Africa.
B3-106 Tokai Village, cnr Vans/Tokai Rds,
Tokai 7945, Western Cape, South Africa.
Tel: +27-21-7154329 Mobile: +27-83-6004028
More information about the clug-tech