On Thu, 31 May 2007 13:37, Christopher Sawtell wrote:
> Quoting Roger Searle <[EMAIL PROTECTED]>:
> > How can I get tar to honour --exclude with hidden folders? Can anyone
> > point me in the right direction? aside from man tar or info tar or
> > google which I have already tried.
>
> You have either just discovered a bug in tar or its manual page.
> I couldn't get it to work properly with the --exclude PATTERN option
> either.
>
> I'd suggest using cpio instead.
>
> find /dir/one /dir/two | grep -v '/\.' | cpio --create
>
> Do please check the manual page for the exact cpio options, there are
> hordes of them.

This thread discusses the problem;

http://ubuntuforums.org/showthread.php?t=70566

Seems that you have to specify the excludes in your options before tar parses 
the arguments.

Cheers Ross Drummond

Reply via email to