*BSD News Article 35346


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!swrinde!news.uh.edu!jpunix.com!not-for-mail
From: perry@jpunix.com (John A. Perry)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: tar --exclude doesn't work.
Date: 2 Sep 1994 11:19:52 -0500
Organization: J. P. and Associates
Lines: 28
Distribution: inet
Message-ID: <347jb8$cjm@jpunix.com>
References: <33sr8j$1p0@jpunix.com> <34619a$dvq@hermes.unt.edu> <HB.94Sep2165930@beauvoir.cs.tu-berlin.de>
NNTP-Posting-Host: jpunix.com
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Newsreader: NN version 6.5.0 #1 (NOV)

hb@cs.tu-berlin.de (Holger Bruehl) writes:

>In article jackson@replicant.csci.unt.edu (Bruce Jackson) writes:

>> You are using this option incorrectly.  The argument to "--exclude"
>> needs to be a file containing the files or regular expressions that
>> match the files you do not want to archive.  To exclude /user/usenet
>> just put "/user/usenet" on a line in a file and then use the filename
>> as the argument to --exclude.

>Sorry for the question, but what is the difference between --exclude and
>--exclude-from ? If you invoked tar --help there are different options.

>  > tar --help
>  [...]
>  --exclude FILE          exclude file FILE
>  -X, --exclude-from FILE exclude files listed in FILE

I tried both ways> I set up a tar command using --exclude FILENAME and it 
still didn't work. Then I tried the same thing using --exclude-from 
FILENAME and it worked. I want to thank everyone that bothered to 
respond. 

-- 
 
 John A. Perry - perry@jpunix.com
 Finger perry@jpunix.com for PGP 2.6 public key.