unix undelete ?????

Marc Wachowitz X903%DMAFHT1.BITNET at cunyvm.cuny.edu
Wed Apr 24 20:42:23 AEST 1991


Undelete utility? Unneccessary. Just make "rm" an alias to a simple
program that moves your file to a designated directory, perhaps giving
a unique name to it and recording the association between the original
name (including path) in a log file; including the date of "deletion".
Recovery from unwanted deletion should now be trivial. To get rid of files
you really want to forget (say, a few days after the pseudo-deletion),
have a kind of "purge" command really remove such old files in the trash
directory. If you fear having too much garbage occupying your precious
space if you forget to purge, make it a daemon (running it once over
night should suffice; e.g. with cron). Implementation is trivial and
left to the interested reader :-)

Marc Wachowitz
X903 at DMAFHT1.BITNET



More information about the Comp.unix.wizards mailing list