*BSD News Article 12570


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:650 comp.unix.questions:31975
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!think.com!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.os.386bsd.questions,comp.unix.questions
Subject: Re: Restoring with gnutar (HELP)
Date: 9 Mar 1993 10:47:53 GMT
Organization: /etc/organization
Lines: 22
Message-ID: <1nhskpINN654@life.ai.mit.edu>
References: <1n2395INN121@geraldo.cc.utexas.edu>
NNTP-Posting-Host: hal.ai.mit.edu


In article <1n2395INN121@geraldo.cc.utexas.edu> vax@ccwf.cc.utexas.edu
(Vax) writes:
>
> But I could not get tar to 'exclude' these directory subtrees!

An example:

  tar -cvf foo .
  tar --exclude /tmp -xvf foo

Why doesn't this work?  Try:

  tar -cvf foo .
  tar --exclude ./tmp -xvf foo

This is the usual failure mode.

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!