Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!cs.utexas.edu!news.unt.edu!replicant!jackson From: jackson@replicant.csci.unt.edu (Bruce Jackson) Newsgroups: comp.os.386bsd.bugs Subject: Re: tar --exclude dosn't work. Date: 2 Sep 1994 02:05:30 GMT Organization: University of North Texas Lines: 24 Distribution: inet Message-ID: <34619a$dvq@hermes.unt.edu> References: <33sr8j$1p0@jpunix.com> NNTP-Posting-Host: replicant.csci.unt.edu 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. > John A. Perry - perry@jpunix.com > Finger perry@jpunix.com for PGP 2.6 public key. -- 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