home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!bcstec!bronte!paula
- From: paula@bronte.boeing.com (Paul Allen)
- Subject: Re: The backup problem (was Re: tar won't do multi-volume archives)
- Message-ID: <1993Jan11.072222.7301@bronte.boeing.com>
- Organization: Boeing Computer Services R&T
- References: <103900@netnews.upenn.edu> <C0JLAn.Hp9@jti.com>
- Date: Mon, 11 Jan 1993 07:22:22 GMT
- Lines: 45
-
- In article <C0JLAn.Hp9@jti.com> richb@jti.com (Richard Braun) writes:
- >Among the DOS utilities I gave up in order to run Linux was 'FastBack'.
- >This is a program which does multi-volume compressed backups in a hurry,
- >and it puts of the day one has to give in and replace the 3.5" diskette
- >with a tape drive.
- >
- >Tar doesn't support this feature. Among all the contributors to Linux,
- >has anyone solved the backup problem using any technology which can be
- >had for <US$300? Byte for byte, tape drives are more expensive than disk,
- >and worse, tape media and formats have diverged wildly in recent years.
-
- Tar does support multi-volume backups. Multi-volume archives are not
- compatible with compression because tar pipes it's output through
- compress and can't tell where the volume boundaries are. I'm not
- sure I want to compress my backups, because a single glitch renders
- the whole thing unusable.
-
- If you really want multi-volume compressed tar backups, you can pipe
- "tar -c -Z -f -" to a simple filter that reads stdin, writes the floppy,
- and prompts for a new floppy when appropriate. Things like this have
- been posted several times over the years. The Minix archives probably
- still contain one and there are almost certainly other implementations
- sitting in other archives. Here's a clue that will help you to create
- your own. The dd command can be invoked as
-
- "dd bs=1024 count=1440 of=/dev/PS0"
-
- It will return an exit status from which you can determine whether or not
- it copied the full amount. (At least, the Sun version does.) Put this
- inside a loop, and you're set. (Well, plus or minus some hacking. :-))
-
- Another approach would be to compress the individual members of the
- archive, but not the headers. I remember seing somebody post that they
- had hacked GNU tar to do this, but I don't remember seeing any diffs.
- The advantage of this scheme would be that you could rely on GNU tar's
- ability to skip over damaged portions of an archive. The disadvantage
- would be that your backups might not be portable.
-
- Paul Allen
- paul.allen@atc.boeing.com
-
- --
- Paul L. Allen -- Paul.Allen@atc.boeing.com or ...!uw-beaver!bcsaic!Paul.Allen
- Boeing Computer Services, Research & Technology, Computing Environment (whew!)
- "Whether you believe that you can or that you cannot, you're right!" (unknown)
-