home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15274 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  3.0 KB

  1. Xref: sparky comp.unix.questions:15274 comp.unix.misc:4865 comp.unix.admin:6956
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!uflorida!travis.csd.harris.com!amber!kbeal
  3. From: kbeal@amber (Ken Beal)
  4. Newsgroups: comp.unix.questions,comp.unix.misc,comp.unix.admin
  5. Subject: Re: Dumb Question...
  6. Message-ID: <1ihrdoINNqta@travis.csd.harris.com>
  7. Date: 7 Jan 93 18:05:44 GMT
  8. References: <C0FJ07.I1r@cc.mey.nl>
  9. Organization: Harris CSD, Ft. Lauderdale, FL
  10. Lines: 41
  11. NNTP-Posting-Host: amber.ssd.csd.harris.com
  12. X-Newsreader: TIN [version 1.1 PL6]
  13.  
  14. Arjan de Bruin#124 (arjanb@cc.mey.nl) wrote:
  15. : In article <C0EsA1.3u2@ncifcrf.gov> digennar@fcs280s.ncifcrf.gov (Frank S. DiGennaro) writes:
  16. : >    This might seem a simple question, but here goes... does UNIX have an 'unerase'
  17. : >command similar to DOS?
  18. : No Frank.
  19. : I suppose you would like to 'unerase' a recently deleted file. Well
  20. : disk blocks that come free when a file is deleted come available in the free 
  21. : list. This Free list is a LIFO , last in first out. So even if you could manage
  22. : to figure out which disk blocks did belong to the deleted file you can almost
  23. : be sure that at least one of that blocks is in use or has been in use by some
  24. : other file by that time. So this answers your question and also tells you the
  25. : WHY.
  26.  
  27. Hmm...  I wonder, if they made the free list a FIFO, you think that'd be
  28. a step toward solving this problem?  I wonder how difficult that would be...
  29. A couple more variables needed, probably, but not an insurmountable problem.
  30. Then the file would be available for unerasing for quite a while (a different
  31. post mentioned Norton's alleged attempts, which involve shoving the file
  32. into a "holding area" for 5 minutes, but it'd be nicer as a FIFO -- you
  33. won't have a preset time limit, and you won't be consuming resources in
  34. case the filesystem is nearing its limit).
  35.  
  36. I have a different solution, myself: I have aliased the "vi" command (no
  37. editor flames, please :-)  ), so that it copies the file I'm editing into
  38. a $HOME/backup_files/ directory, and adds the current date and time to the
  39. end of it (so that multiple edits of the same file won't overwrite each
  40. other).  Then I've got another program in crontab which runs at 4:00 am and
  41. deletes all files more than 2 days old.  It's a bit complicated solution,
  42. and it >does< take up extra space, but it beats going to the backup tapes.
  43.  
  44. (fwiw, undeleting with my method is a bit more complicated; I've gotta go
  45. in, figure out which one I want, type the full name, date and time included,
  46. remember what directory it came from since >that< isn't saved along with
  47. it, and copy it back to its original name.  But I don't need it all that
  48. often, so it's good enough for me! :-)  ).
  49. --
  50. Kenneth L. Beal, Jr.  kbeal@amber.ssd.csd.harris.com | Use OS/2 2.0! :-) often.
  51. "I'd give my right arm to be ambidextrous!" - MST3k  | Learn.  Keep moving.
  52. "Street person my responsibility." - Indigo Girls    | Better yourself.
  53. The opinions expressed above are shared.  The preceding sentence is false.
  54. *** News at Harris expires daily.  If you want me to see it, please E-MAIL! ***
  55.