Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2009 22:10:31 +0200
From:      =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes@yandex.ru>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re[2]: How to force tar to be quiet?
Message-ID:  <1047257846.20091227221031@yandex.ru>
In-Reply-To: <4B37AB6D.3020507@infracaninophile.co.uk>
References:  <1846015154.20091227185106@yandex.ru> <4B37AB6D.3020507@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Здравствуйте, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1047257846.20091227221031>