Change your exclude file to contain:
/backup/*
/dev/*
/proc/*
/sys/*

> ------------------------------
> 
> Message: 3
> Date: Tue, 2 Aug 2005 05:37:53 -0500
> From: Shawn Fertch <sfertch at gmail.com>
> Subject: Re: [tclug-list] exclude option in tar (Bare metal recovery
> 	planning)
> To: TCLUG Mailing List <tclug-list at mn-linux.org>
> Message-ID: <67f3084a050802033718b2abdf at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On 8/1/05, Josh Welch <josh at joshwelch.com> wrote: 
> > I've had lousy luck using the exclude option from the command line. I
> > have had luck with creating a file containing a list of directories to
> > exclude and using the exclude-from option. This works for me:
> > 
> > tar -cvf /backup/backup.tar / --exclude-from /backup/exclude.txt
> > 
> > exclude.txt looks like this:
> > 
> > /backup
> > /dev
> > /proc
> > /sys
> > 
> > If you really wanted to make it a single script, you could do something
> > that echos lines out to a file before running the tar command, kind of a
> > hack but the best answer that I have.
> 
> 
> Thanks, Josh.  I tried that with the -X option instead of typing out
> the full --exclude-from, but it's still picking up the excluded
> directories.  I'll give it a go with fully specifying the
> --exclude-from option.




--- http://USFamily.Net/dialup.html - $8.25/mo! -- http://www.usfamily.net/dsl.html - $19.99/mo! ---