*BSD News Article 35409


Return to BSD News archive

From: nora@eeubln.IN-Berlin.DE (Nora E. Etukudo)
Date: Sat,  3 Sep 94 13:42:24 GMT
Message-ID: <94Sep03.131819.3785@eeubln.IN-Berlin.DE>
Reply-To: nora@eeubln.IN-Berlin.DE (Nora E. Etukudo)
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!unlisys!harvey!y.z!x
References: <33sr8j$1p0@jpunix.com> <34619a$dvq@hermes.unt.edu>
Organization: Nora's UNIX Archive Berlin, Germany, Private Site
X-Newswriter: [pnews V1.0.0a], Nora's own news handler
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Newsgroups: comp.os.386bsd.bugs
Subject: Re: tar --exclude dosn't work.
Lines: 50

   in article <34619a$dvq@hermes.unt.edu>,
   from 2 Sep 1994 02:05:30 GMT,
   jackson@replicant.csci.unt.edu also known as "Bruce Jackson",
   wrote [shortend]:
[...]
> In  article <33sr8j$1p0@jpunix.com>,  John A.  Perry <perry@jpunix.com>
> wrote:
>
> > I have been using  tar under FreeBSD 1.1R do do  my backups for quite
> > some time  with good  success. Here is  a new twist.  I just  added a
> > Usenet feed to my site with all the associated disk usage. My news is
> > stored  in /user/usenet/spool.  When I  try to  invoke tar  --exclude
> > /user/usenet,  it tars  up  the entire  newsfeed  anyway! It  appears
> > as  though  the --exclude  switch  doesn't  work  or I'm  calling  it
> > incorrectly or something. Can anyone help me out. Failing fixing tar,
> > how  can  I  back  up  my system  excluding  a  particular  directory
> > hierarchy?
>
> 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.

I looked at the man page and help output from tar:
   --exclude FILE          exclude file FILE
   -X, --exclude-from FILE exclude files listed in FILE

I've tried 
   tar --exclude /s0/siscadp -cv /s0
where '/s0/siscadp'  is the  directory to exclude,  this works.  The dash
before 'cv' is important if you use double-dash options also.

I'm talking about GNU tar 1.11.2

> > John A. Perry - perry@jpunix.com
> Bruce Jackson         | Univ. of North Texas   | jackson@cs.unt.edu
> UNIX Systems Admin.   | P. O. Box 13886        | GAB 550E (817)565-2279
> Dept. of Computer Sci.| Denton, Tx. 76203-3886 | FAX: (817)565-2799

Greetings, Nora.
--
-------------------------------------------------------------------------
   Nora E. Etukudo                          <nora@eeubln.IN-Berlin.DE>
   Joachim-Friedrich-Str. 39c  +4930 8932911, 14400-V42bis, 0000-2359h
   D-10711 Berlin              +4930 8922407, 14400-V42bis, 2245-0745h
                                 Login with nuucp (nuucp) or source ()
   Germany                                        Get ~/archiv/INDEX.z
-------------------------------------------------------------------------