1825704 Members
3246 Online
109686 Solutions
New Discussion

gnu tar exclude option

 
SOLVED
Go to solution
Steve_3
Frequent Advisor

gnu tar exclude option

I want to exclude a directory from a tar. I can't get it work work.

example...exclude dir c

/a
/a/b
/a/c
/a/d

gtar -cvp --exclude=/a/c -f file.tar *

3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: gnu tar exclude option

Hi Steve,

I'm not shure I understand your problem.

# cd /a
# tar -cvf tarball.tar --exclude=c .

Regards,
Robert-Jan
Steve_3
Frequent Advisor

Re: gnu tar exclude option

i figured it out.
Michael D'Aulerio
Regular Advisor

Re: gnu tar exclude option

Steve,

Could you please share your solution.
Thanks,
Mike
Email: michael.n.daulerio@lmco.com