Skip site navigation (1)Skip section navigation (2)
Date:      09 Nov 2003 15:01:39 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        rodperson@comcast.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem with tar on 5.1?
Message-ID:  <44u15d5n18.fsf@be-well.ilk.org>
In-Reply-To: <200311081922.47819.rodperson@comcast.net>
References:  <200311081922.47819.rodperson@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Rod Person <rodperson@comcast.net> writes:

> according to the man page for tar --exclude-from and -X are supported.
> This command does not do what I expected it to do:
>  tar -cz -f/usr/local/tmp/RoddieRodHome.tgz /home/roddierod 
> --exclude-from=/home/roddierod/.pan
> 
> Now I would expect that this would create a tar gzip file called 
> RoddieRodHome.tgz and tar ball of my home with every thing but the files in 
> .pan. But it does include the .pan directory.
> 
> Is the --exclude-from not supported even though it is in the manpage?

I think you're confusing --exclude with --exclude-from.

What you typed should have excluded all of the files that were listed
in a file named "/home/roddierod/.pan".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44u15d5n18.fsf>