From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 20:10:27 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 5642D106566B for ; Sun, 27 Dec 2009 20:10:27 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward14.mail.yandex.net (forward14.mail.yandex.net [95.108.130.92]) by mx1.freebsd.org (Postfix) with ESMTP id 087C98FC17 for ; Sun, 27 Dec 2009 20:10:26 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward14.mail.yandex.net (Yandex) with ESMTP id 3E12F2680091; Sun, 27 Dec 2009 23:10:25 +0300 (MSK) Received: from HOMEUSER (unknown [77.93.42.18]) by smtp11.mail.yandex.net (Yandex) with ESMTPA id 1948D5368001; Sun, 27 Dec 2009 23:10:24 +0300 (MSK) X-Nat-Received: from [192.168.2.6]:1372 [ident-empty] by SPAM FILTER: with TPROXY id 1261944852.23977 abuse-to kes-kes@yandex.ru Date: Sun, 27 Dec 2009 22:10:31 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1047257846.20091227221031@yandex.ru> To: Matthew Seaman In-Reply-To: <4B37AB6D.3020507@infracaninophile.co.uk> References: <1846015154.20091227185106@yandex.ru> <4B37AB6D.3020507@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Yandex-TimeMark: 1261944625 X-Yandex-Spam: 1 X-Yandex-Front: smtp11.mail.yandex.net Cc: freebsd-questions@freebsd.org Subject: 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: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 20:10:27 -0000 Здравствуйте, Matthew. Вы писали 27 декабря 2009 г., 20:46:05: MS> Коньков Евгений wrote: >> Здравствуйте, Freebsd-questions. >> >> when >> tar -cf file.tar /home/* >> It always says: >> tar: Removing leading '/' from member names >> >> man tar >> -P Preserve pathnames... >> But I do not need to preserve. I want to tar without that warning. >> >> How to force tar to be quiet? >> MS> Don't give the leading '/' in path names. Like so: MS> tar -cf file.tar -C / home MS> Cheers, MS> Matthew # 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? Thank you -- С уважением, Коньков mailto:kes-kes@yandex.ru