View Single Post

   
  #4 (permalink)  
Old 02-21-2008, 09:19 PM
Felix M. Palmen
 
Posts: n/a
Default Re: exclude in tar command

* Peter Terpstra <peter@dharma.dyndns.invalid>:
> Brad Rogers in <pan.2008.02.21.11.18.45.813936@abydos.stargate.or g.uk> :
>
>
>> tar --help gives (amongst other things);
>>
>> --exclude=PATTERN Â* Â* Â*exclude files, given as a PATTERN


That's not meant for multiple patterns.

> tar cvf --exclude="*.gz *.cf *.txt *.sh *.conf *.db" test.tar etc


Either use another option reading your patterns from a file or use
multiple --exclude options, one for each pattern.

--
Felix M. Palmen (Zirias) \ -PGP- <fmp@palmen.homeip.net> /"\ ASCII Ribbon
web: http://zirias.ath.cx/ \ http://zirias.ath.cx/pub.txt \ / Campaign
my open source projects: \ FP ED9B 62D0 BE39 32F9 2488 X Against HTML In
http://zirias.ath.cx/?pg=pro \ 5D0C 8177 9D80 5ECF F683 / \ Mail And News
Reply With Quote