tar -X ---exclude ....

Hi
I cannot understand how to exclude a file from tar.
I tried:
tar --exclude VA01109-1/ds/gmon.out -cvf /tmp/save.tgz *

targ -cvf /tmp/save.tgz --exclude VA01109-1/ds/gmon.out *

VA01109-1/ds/gmon.out in /tmp/exclude_file

tar -X /tmp/exclude_file -cvf /tmp/save.tgz *

tar -cvf /tmp/save.tgz -X /tmp/exclude_file *

no way, gmon.out is allways in my archive

How does it work???

thanks,
Alain.

Hello Alain,



Try this again without adding the path to the exclude list. For example
just use "tar --exclude=gmon.out -cvf /tmp/save.tgz *



This should solve your problem but if it doesn’t please post back with the
output from ‘uname -a’.



Regards,

Dave B.









“Alain Bonnefoy” <alain.bonnefoy@icbt.com> wrote in message
news:3E37A263.4000603@icbt.com

Hi
I cannot understand how to exclude a file from tar.
I tried:
tar --exclude VA01109-1/ds/gmon.out -cvf /tmp/save.tgz *

targ -cvf /tmp/save.tgz --exclude VA01109-1/ds/gmon.out *

VA01109-1/ds/gmon.out in /tmp/exclude_file

tar -X /tmp/exclude_file -cvf /tmp/save.tgz *

tar -cvf /tmp/save.tgz -X /tmp/exclude_file *

no way, gmon.out is allways in my archive

How does it work???

thanks,
Alain.

of course, of course!

thanks,
Alain.

Dave Boltz a écrit:

Hello Alain,



Try this again without adding the path to the exclude list. For example
just use "tar --exclude=gmon.out -cvf /tmp/save.tgz *



This should solve your problem but if it doesn’t please post back with the
output from ‘uname -a’.



Regards,

Dave B.









“Alain Bonnefoy” <> alain.bonnefoy@icbt.com> > wrote in message
news:> 3E37A263.4000603@icbt.com> …


Hi
I cannot understand how to exclude a file from tar.
I tried:
tar --exclude VA01109-1/ds/gmon.out -cvf /tmp/save.tgz *

targ -cvf /tmp/save.tgz --exclude VA01109-1/ds/gmon.out *

VA01109-1/ds/gmon.out in /tmp/exclude_file

tar -X /tmp/exclude_file -cvf /tmp/save.tgz *

tar -cvf /tmp/save.tgz -X /tmp/exclude_file *

no way, gmon.out is allways in my archive

How does it work???

thanks,
Alain.



\