Re: why wont tar exclude
- From: Michael W Cocke <cocke@xxxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 06:30:39 -0500
On Sun, 29 Jan 2006 14:19:26 -0800, Eric <nospam@xxxxxxxxx> 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
>Thanks
>Eric
tar --totals -cpvzf /mnt/squirrel/home/backups/mwcdt/mwcdt.tar.gz -X
/root/fullback.exclude /* 2>/root/fullback.errors
(all one command)
and fullback.exclude is a simple list of dirs to exclude.
/dev/*
/mnt/*
/proc/*
/media/*
/sys/*
/lost+found/*
/tmp/*
/boot/*
Mike-
--
If you're not confused, you're not trying hard enough.
--
Please note - Due to the intense volume of spam, we have installed
site-wide spam filters at catherders.com. If email from you bounces,
try non-HTML, non-encoded, non-attachments,
.
- Prev by Date: Re: America's Army overheating and shutdown
- Next by Date: soundcard question
- Previous by thread: Re: why wont tar exclude
- Next by thread: Re: ssh on ping port?
- Index(es):