*BSD News Article 99169


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!seagoon.newcastle.edu.au!brushtail.hna.com.au!mjm
From: mjm@SPAMMERS.hna.BUGGER.com.OFF.au (Matt McLeod)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: tar - excluding files
Date: 7 Jul 1997 11:19:05 GMT
Organization: Hunter Network Association, Australia
Lines: 19
Message-ID: <slrn5s1k59.7l2.mjm@praetor.hna.com.au>
NNTP-Posting-Host: praetor.hna.com.au
X-Newsreader: slrn (0.8.8.2 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44064


I realise that this isn't a FreeBSD-specific question, but...

I'm trying to do backups to tape, and there is some stuff that I don't
really want to backup (/dev, /proc, /var/news, /usr/ports, /sys, /usr/src,
and so on), but I can't for the life of me figure out how to make tars
--exclude option work.

I've tried it as:  --exclude "the various stuff I don't want backed up", as
--exclude dev --exclude proc, etc, and also as --exclude "dev/*" --exclude
"proc*", etc, but it insists on dumping them to tape anyway - which seems to
work OK, but I don't really want to stick the whole news-spool on tape.

If someone could enlighten me, I'd be greatly appreciative.

-- 
Matt McLeod,  <mjm(at)hna.com.au>
"Please try to understand before one of us dies".