Re: why wont tar exclude
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 16:44:10 -0600
On Sun, 29 Jan 2006 14:19:26 -0800, Eric wrote:
> cd /
> tar -cvzf /tmp/home_dirs.tar.gz home --exclude home/a_user
>
> Why does this fail to exclude home/a_user?
> Its drivng me nuts! I've tried a pattern file, quotes, wildcards etc etc
> and i simply cant make the f**g thing exclude paths
> Its probably some simple thing
I usually find using the syntax given in the man page helps
SYNOPSIS
tar [OPTION...] [FILE]...
--exclude=PATTERN
exclude files, given as a PATTERN
This worked for me
cd /
tar -cvzf /tmp/home_dirs.tar.gz --exclude=home/bittwister home
.
- Prev by Date: Re: Ipod using linux?
- Next by Date: Stats alt.os.linux (last 7 days)
- Previous by thread: Kanotix no host on network!
- Next by thread: Re: why wont tar exclude
- Index(es):
Relevant Pages
|