From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 21:06:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5910A106568D for ; Sun, 27 Dec 2009 21:06:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 155188FC19 for ; Sun, 27 Dec 2009 21:06:42 +0000 (UTC) Received: from r55.edvax.de (port-92-195-26-31.dynamic.qsc.de [92.195.26.31]) by mx02.qsc.de (Postfix) with ESMTP id 8628F1EFBA; Sun, 27 Dec 2009 22:06:41 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nBRL6ZfC005770; Sun, 27 Dec 2009 22:06:35 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 27 Dec 2009 22:06:35 +0100 From: Polytropon To: =?UTF-8?Q?=D0=9A=D0=BE=D0=BD=D1=8C=D0=BA=D0=BE=D0=B2_=D0=95=D0=B2?= =?UTF-8?Q?=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9?= Message-Id: <20091227220635.fcd005eb.freebsd@edvax.de> In-Reply-To: <1047257846.20091227221031@yandex.ru> References: <1846015154.20091227185106@yandex.ru> <4B37AB6D.3020507@infracaninophile.co.uk> <1047257846.20091227221031@yandex.ru> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Re[2]: How to force tar to be quiet? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 21:06:43 -0000 On Sun, 27 Dec 2009 22:10:31 +0200, Коньков Евгений wrote: > # tar -cf /home/kes/backup/conf/aaa_etc.tar -C / boot/loader.conf etc/* usr/local/etc/* usr/local/virtwww/* > tar: No match. > > And next does not work as expected: > # tar -cf /home/kes/backup/conf/aaa_etc.tar -C / boot/loader.conf etc usr/local/etc usr/local/virtwww > > I get: > boot > etc > mysite > local > sub > usr > virtwww > > Why local, sub, mysite, virtwww are in ROOT or tar??? > 'local' must be under 'usr' > 'virtwww' must be under 'local' > 'mysite' must be under 'virtwww' > but not in root > > Why I get that wrong result? When * is specified on the command line, the shell will expand it. This causes the subtrees / subdirs (or their 1st level content) of /usr/local to be the subject of the archiving operation. Which shell are you using? Is it maybe not expanding * and instead taking it literally? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...