From: Andrey Orlov <cray_@neural.ru>
To: community@altlinux.ru
Subject: Re: [Comm] проблема с архивами созданными с помощью procmail'a
Date: Sat, 14 May 2005 01:49:30 +0400
Message-ID: <200505140149.30934.cray_@neural.ru> (raw)
In-Reply-To: <op.sqpspw2aap81rx@k279>
On Friday 13 May 2005 16:52, Шайхутдинов Дамир wrote:
> Привет!
>
> > Кинулся поднимать почту из архива и обнаружил кучу
> > битых .gz архивов . Возможно-ли их как-нить починить ?
> >
> > Почта бэкапиться конструкцией
> > /etc/procmailrc
> > | gzip >>$FOLDERTOARCHIVE/${EARFOLDER}/${MONTHFOLDER}/`date
> ^^
> Думаю, ошибка здесь.
> символ перенаправления >> дописывает в файл, а не создает его заново.
> Надо заменить его на одиночный >.
>
> С уже испорченными файлами надо сделать так:
> Надо отловить в них начала gz-заголовков (магические байты) и по ним
> разбить на файлы. Получатся нормальные архивы, которые можно будет
> разархивировать.
Может я че не так понял (не читал оригинальное письмо), но вообще-то дописывание в конец
для gzip штатная ситуация:
------------- (cut man gzip)
Multiple compressed files can be concatenated. In this case, gunzip
will extract all members at once. For example:
gzip -c file1 > foo.gz
gzip -c file2 >> foo.gz
Then
gunzip -c foo
is equivalent to
cat file1 file2
In case of damage to one member of a .gz file, other members can still
be recovered (if the damaged member is removed). However, you can get
better compression by compressing all members at once:
cat file1 file2 | gzip > foo.gz
compresses better than
----------------------
--
WthBstRgrds -- Андрей Орлов --
--- http: www.neural.ru, mail: cray@neural.ru, jid: cray@altlinux.org ---
----------------------------------------
next prev parent reply other threads:[~2005-05-13 21:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 12:41 Roman V. Tutov
2005-05-13 12:52 ` Шайхутдинов Дамир
2005-05-13 17:16 ` Roman V. Tutov
2005-05-13 13:17 ` Шайхутдинов Дамир
2005-05-13 14:25 ` Alexey I. Froloff
2005-05-13 14:38 ` Шайхутдинов Дамир
2005-05-13 14:59 ` Alexey I. Froloff
2005-05-13 21:52 ` Andrey Orlov
2005-05-13 21:49 ` Andrey Orlov [this message]
2005-05-14 12:01 ` Roman V. Tutov
2005-05-14 9:00 ` [Comm] " Vitaly Ostanin
2005-05-13 14:19 ` [Comm] " Sergey Vlasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505140149.30934.cray_@neural.ru \
--to=cray_@neural.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git