Le 31/05/2011 11:23, Marian Hettwer a C)crit :
On Tue, 31 May 2011 10:53:58 +0200, LEVAI Daniel<l...@ecentrum.hu>
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.
Also
tar cf /foo.tar /bar/!(folder|other_folder)
using plain ksh
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...
I'm wondering where does that logic stop... do you also install GNU ls
to get colors?