On Tue, 2007-01-23 at 13:44 -0500, Tony Heal wrote: > OK, how about some preventative stuff. If there is not real way to > 'undelete' files. How about adding a script named 'rm' that passes the same > switches to from the script to /bin/rm but moves the files to tmp before > deleting them. > > Anyone have something like this hanging around their system somewhere?
I think you want libtrash, from the description:
"libtrash is a shared library which, when preloaded,
implements a trash can under GNU/Linux. This way, your
mistakes (at least those of the "rm -rf dir /" class :-))
will no longer cause the loss of a week's work or your
system's binaries."
However, I believe it broke some stuff or misbehaved in other ways. I
can't remember exactly but Google can probably dig up som criticisms.
--
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22
signature.asc
Description: This is a digitally signed message part

