home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.11 / text0043.txt < prev    next >
Encoding:
Internet Message Format  |  1987-07-18  |  1.3 KB

  1. From: mark@cbpavo.mis.oh.att.com (Mark Horton)
  2.  
  3. In article <8144@ut-sally.UUCP> gnu@hoptoad.UUCP (John Gilmore) writes:
  4. >*    People like cpio's user interface better.
  5. >
  6. >*    Tar's format on the tape is more portable.
  7.  
  8. Personally, I feel exactly the opposite.
  9.  
  10. The cpio format is quite portable, as long as you're careful to use
  11. the c option.  The advantage to cpio format is that the images created
  12. are considerably smaller than tar's.  Also, cpio can save/restore entries
  13. from /dev, making it useful for backups.
  14.  
  15. [ The format in POSIX 10.1 can also do this.  -mod ]
  16.  
  17. The user interface, on the other hand, of cpio is horrible, unless you
  18. are trying to do an incremental backup.  Compare the following equivalent
  19. commands:
  20.     $ tar c .
  21.     $ find . -print | cpio -oc > /dev/rmt8
  22.  
  23.     $ tar x .
  24.     $ cpio -icd < /dev/rmt8
  25.  
  26. Not only do you need a find command with cpio, but you'd better
  27. remember the c and d options, or you'll regret it later!
  28.  
  29. cpio is a big win for incremental backups, as long as they fit
  30. on one reel of tape:
  31.     $ find . -newer /etc/lastbackup -print | cpio -oc > /dev/rmt8
  32. Of course, that's a pretty major "as long as", and there are lots
  33. of special versions of cpio that understand multiple backup volumes
  34. and streaming I/O and such things.
  35.  
  36.     Mark
  37.  
  38. Volume-Number: Volume 11, Number 44
  39.  
  40.