home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23598 < prev    next >
Encoding:
Text File  |  1993-01-11  |  2.6 KB  |  56 lines

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