Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Michael J. Donahue" <donahue@saaz.cam.nist.gov>
To: axp-list@redhat.com
Subject: Re: Reliable tape backup for Linux/AXP
Date: Tue, 31 Aug 1999 14:18:01 -0400	[thread overview]
Message-ID: <199908311818.OAA13715@saaz.cam.nist.gov> (raw)
In-Reply-To: <199908311553.JAA12571@ellpspace.math.ualberta.ca> (message from Michal Jaegermann on Tue, 31 Aug 1999 09:53:12 -0600 (MDT))

Michal Jaegermann wrote:
>B. James Phillippe wrote:
>> 
>> Anyone have any advice for a (free) very reliable, compress-capable
>> text-mode tape backup program that runs on RH6/AXP?
>
>afio with a -Z option compresses on a file-by-file bases which is much
>better (reliability) than trying to compress the whole archive on a
>tape; the later is a crapshot proposition does not matter what serves
>as a base.

I have used afio in the past, and it works well.  It's been a long time
since I studied this, but as I recall the problem with compressing the
stream as a whole using a Lempel-Ziv type algorithm is that a single bit
error potentially corrupts the entire stream past that point.  If you
compress on a file by file basis, then errors are confined to the file
in which they occur.  The downside to this is that if you have a lot of
small files, then you don't get a good compression ratio.

I haven't tried this, but perhaps one could use bzip2 (which uses a
different compression algorithm) instead of gzip or compress?  From the
bzip2 man page:

    bzip2 compresses files in blocks, usually 900kbytes long.  Each
    block is handled independently.  If a media or transmission error
    causes a multi-block .bz2 file to become damaged, it may be
    possible to recover data from the undamaged blocks in the file.

    The compressed representation of each block is delimited by a
    48-bit pattern, which makes it possible to find the block
    boundaries with reasonable certainty.  Each block also carries
    its own 32-bit CRC, so damaged blocks can be distinguished from
    undamaged ones.

    bzip2recover is a simple program whose purpose is to search for
    blocks in .bz2 files, and write each block out into its own .bz2
    file.  You can then use bzip2 -t to test the integrity of the
    resulting files, and decompress those which are undamaged.

Has anyone studied this?

-m

-- 
Michael J. Donahue
National Institute of Standards and Technology
Mathematical & Computational Sciences Division
100 Bureau Dr Stop 8910
Gaithersburg, MD 20899-8910
email: michael.donahue@nist.gov
voice: (301) 975-5424
  fax: (301) 990-4127
  web: http://math.nist.gov/mcsd/Staff/MDonahue/


      parent reply	other threads:[~1999-08-31 18:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-31  6:58 Reliable tape backup for Linux/AXP B. James Phillippe
1999-08-31 10:30 ` Jaap Schellekens
1999-08-31 13:36 ` wae
1999-08-31 15:53 ` Michal Jaegermann
1999-08-31 17:44   ` B. James Phillippe
1999-08-31 19:49     ` Michal Jaegermann
1999-08-31 18:18   ` Michael J. Donahue [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox