Posted by: Anonymous Coward
on November 20, 2006 11:48 PM
don't let it happen in the first place!
As usual in Linux, there are more than one way to do it:
* <a href="http://freshmeat.net/projects/libtrash/" title="freshmeat.net">libtrash</a freshmeat.net> is a dynamic library which, when preloaded wit provides a wrapper for numerous libc calls, especially unlink(), so that every program, instead of removing a file, moves it to a configurable place in the file system.
* there are several projects which use the FUSE framework to implement versioning filesystems. Just have a look at <a href="http://fuse.sourceforge.net/wiki/index.php/FileSystems" title="sourceforge.net">http://fuse.sourceforge.net/wiki/index.php/FileSy<nobr>s<wbr></nobr> tems</a sourceforge.net>