On Tue, 31 May 2011 10:53:58 +0200, LEVAI Daniel <[email protected]>
wrote:
> On Tue, May 31, 2011 at 11:42:24 +0300, Michael Sioutis wrote:
>> Hello!
>>
>> I can't find it in the man page, and it seems it is not supported (?)
>> I am trying to backup some folders and want to exclude some and nth
>> will work. I've tried:
>> --exclude=/folder/
>> --exclude="/folder/
>> --exclude /folder
>> --exclude "folder"
>>
>> I will get an error: "--exclude... directory doesn't exist".
>>
>> Excluding will work in Linux.
>>
> That is a GNU extension. You can work this around with find(1) and the
> tar(1)'s '-I' option.
> 
> 

bsdtar from the FreeBSD project supports --exclude too.
The OP could as well install gnu tar from packages. bsdtar doens't seem
to exist...

At least that's what I do at work (Debian, Solaris, OpenBSD env).
It's a pain to walk around every nifty details of different unixes...

Cheers,
Marian

Reply via email to