From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17460 invoked from network); 31 Aug 1999 18:18:06 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 31 Aug 1999 18:18:06 -0000 Received: from saaz.cam.nist.gov (saaz.cam.nist.gov [129.6.88.116]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA31785 for ; Tue, 31 Aug 1999 14:18:06 -0400 Received: (from donahue@localhost) by saaz.cam.nist.gov (8.8.7/8.8.7) id OAA13715; Tue, 31 Aug 1999 14:18:01 -0400 Date: Tue, 31 Aug 1999 14:18:01 -0400 Message-Id: <199908311818.OAA13715@saaz.cam.nist.gov> X-Authentication-Warning: saaz.cam.nist.gov: donahue set sender to donahue@saaz.cam.nist.gov using -f From: "Michael J. Donahue" To: axp-list@redhat.com In-reply-to: <199908311553.JAA12571@ellpspace.math.ualberta.ca> (message from Michal Jaegermann on Tue, 31 Aug 1999 09:53:12 -0600 (MDT)) Subject: Re: Reliable tape backup for Linux/AXP Reply-to: michael.donahue@nist.gov (Michael Donahue) References: <199908311553.JAA12571@ellpspace.math.ualberta.ca> 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/