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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!ashtray
  3. From: ashtray@yoyo.cc.monash.edu.au (John Newnham)
  4. Subject: Re: The backup problem (was Re: tar won't do multi-volume archives)
  5. Message-ID: <1993Jan13.011738.18849@monu6.cc.monash.edu.au>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: you have got to be kidding!
  8. References: <1993Jan11.151640.16986@wam.umd.edu> <0JJ9wB3w165w@kf8nh.wariat.org>
  9. Date: Wed, 13 Jan 1993 01:17:38 GMT
  10. Lines: 24
  11.  
  12. In article <0JJ9wB3w165w@kf8nh.wariat.org> kf8nh@kf8nh.wariat.org (Brandon S. Allbery) writes:
  13. >
  14. >Not last I heard... tar can be made to take a list of file names from stdin,
  15. >but not a succession of files (how is it to know where one stops and the
  16. >next starts?).
  17. >
  18.  
  19. by using a shell script?  something along the lines of:
  20.  
  21. tar c /mnt/backup
  22. for file in $LIST
  23. do
  24. # should make sure the filename is <= 12 chars, or it will not work
  25.     compress -c $file
  26.     tar u /mnt/backup ${file}.Z
  27.     rm -f ${file}.Z
  28. done
  29.  
  30. seems easy enough.  Now just add the other flags you need, for multi-volume
  31. support etc.  The LIST could be created by an embedded `find` instead.
  32. Now you don't have to worry about a one-bit error in the tar file.
  33. -- 
  34. Vogt's commentary on the theory of Morphic Resonance:
  35.   There is no god!  The universe just got into bad habits. (Marcus Vogt)
  36.