home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / coherent / 6671 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  2.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!lll-winken!unixhub!linac!uchinews!machine!ddsw1!gagme!drktowr!magus
  2. From: magus@drktowr.chi.il.us (Louis Giliberto)
  3. Newsgroups: comp.os.coherent
  4. Subject: cpio help needed
  5. Message-ID: <9301072505@drktowr.chi.il.us>
  6. Date: 8 Jan 93 12:46:45 GMT
  7. Organization: DarkTower Software
  8. Lines: 42
  9. X-Newsreader: TIN [version 1.1 PL7]
  10.  
  11. Hi guys,
  12.  
  13. Here is a problem I've encountered 3 times now, and I don't know
  14. if I'm doing something wrong.
  15.  
  16. Since I've gotten Coh, I've changed hard drives 3 times.  First it
  17. was on a 40 meg drive, then a 60 meg, then a 120 meg.  Now I have
  18. it running on both the 60 and the 120 meg (I made root the
  19. 60 meg drive and 120 is partitioned into /usr2 and /usr/local)
  20. drives and it works fine.
  21.  
  22. When I move it, I back up the system twice (of course) with cpio.  Then
  23. I install coherent on the new disk and restore my backup with cpio.
  24. I adjust the kernel to what it was before and everything like that goes
  25. ok.
  26.  
  27. The only problem is this:  when I restore a cpio backup, all the file
  28. bits, including any "s" bits that are set, are correct, but the owner
  29. and group are all changed to root (I run shutdown and restore from
  30. single-user mode on the console).  So I have to go through and hope
  31. I get the owner and everything right when I change it all back.  For
  32. the standard stuff, I can mount the distribution floppies and look and
  33. see what it was set at, but for the stuff I installed I tend to forget
  34. (it took me 4 hours to figure out that tin doesn't run setuid/setgid).
  35. Also, cpio doesn't remember empty directories.
  36.  
  37. Is there any way to get cpio to:
  38.  
  39. 1) Restore the owner and group of the files properly
  40. 2) Save and restore empty directories (like might be needed for news 
  41.    and such).
  42.  
  43. -Louis
  44. --
  45. --------------------------------------------------------------------
  46.  Louis J. Giliberto, Jr.   ! magus@drktowr.chi.il.us
  47.    -sysadmin drktowr       !   "I had an account at school, but the
  48.    Chicago, IL  USA        !    quota was 300K - what's the point?
  49. Home of DarkTower Software !    One Madonna .gif and it's over!"
  50. --------------------------------------------------------------------
  51. "Try his first wife's maiden name" -- Cheshire Catalyst
  52. --------------------------------------------------------------------
  53.