On Wed, Sep 1, 2010 at 20:39, Lisa Muir <34.24.34 at gmail.com> wrote:
> I've been thinking about it, and wondering if it would be an idea to
> replace rm with a script based on mv to make it easier to recover from
> incidents like this. It gets complex when you consider the various
> commandline switches and then handling multiple files of the same name
> in wherever you move the files, missing folder context. Was thinking
> of moving files to a zapme folder in some location with a cron script
> to actually delete files or folders in zapme folders which are older
> than 1 week old.
>> Just curious to know if anyone has worked on anything like that before
> or seen anything like it in the online projects?
Yes: http://groups.google.com/group/comp.unix.wizards/browse_thread/thread/c49664a0c23d4333/626d34051202e012?q=entomb+rm#626d34051202e012
And there were loads of others. If you hunt in USENET you'll see all
the concerns raised in this thread raised about 20 years ago as well.
ISTR Purdue admins being described as Satan worshippers for installing
such a thing.
Kevin
--
Kevin Lyda
Dublin, Ireland
US Citizen overseas? We can vote.
Register now: http://www.votefromabroad.org/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!