Re: why wont tar exclude



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,
.


Quantcast