How to force tar to be quiet?
Коньков Евгений
kes-kes at yandex.ru
Sun Dec 27 20:10:27 UTC 2009
Здравствуйте, 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 at yandex.ru
More information about the freebsd-questions
mailing list