*BSD News Article 18901


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!purdue!mentor.cc.purdue.edu!staff.cc.purdue.edu!ksb
From: ksb@staff.cc.purdue.edu (Kevin Braunsdorf)
Subject: entombing for files removed by rm, mv, or cp (available)
Message-ID: <CAsGKC.6sM@mentor.cc.purdue.edu>
Followup-To: poster
Summary: rm foo ; ... ; unrm foo
Keywords: rm, mv, cp, entombing, save files, preend, entomb, unrm, libtomb.a
Sender: news@mentor.cc.purdue.edu (USENET News)
Organization: PUCC UNIX Group
Date: Mon, 26 Jul 1993 20:21:47 GMT
Lines: 22

I have ported the Purdue Univ. Computing Center's entombing system to 386bsd
(NetBSD maybe too).  It comes in 5 shar files of <51K.  It takes maybe 20
minutes to install and requires little care and feeding.

This code lets you `unrm' files you recently rm'd.  {Mv, and cp can be caught
as well.}  Other programs (like vi) can be taught to entomb by just
recompiling them with `/usr/local/lib/libtomb.a' on the load line.

The user interface for restoring files (unrm) is pretty nice too.


If you are interested in installing this on your system drop me a line.  I'll
send out shar files -- you send me your comments.


You need the source to rm/mv/cp in the std place to rebuild them.  You should
edit /etc/rc.local to add a new (cheap) daemon, preend.  [BTW: you do have to
add one line each to the password and group files.]

--
In his sleep, Nathan Stack talked.  "Why did you pick me? Why me . . .?"
kayessbee, Kevin Braunsdorf, ksb@cc.purdue.edu, pur-ee!ksb, purdue!ksb