Re: undelete
On Tue, 2007-01-23 at 19:00 +0000, andy wrote:
> 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?
> >
> > Tony
> >
> > -----Original Message-----
> > From: Ron Johnson [mailto:ron.l.johnson@cox.net]
> > Sent: Tuesday, January 23, 2007 12:34 PM
> > To: debian-user@lists.debian.org
> > Subject: Re: undelete
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 01/23/07 10:37, Tony Heal wrote:
> >
> > > Is there a way to recover deleted files?
> > >
> >
> > Maybe, if you are using FAT (highly unlikely) or ext2 (also highly
> > unlikely) and you pulled the plug as soon as you noticed what you did.
> >
> > Sadly, the standard answer, though, is, "No, you're SOL."
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> >
> > iD8DBQFFtkcRS9HxQb37XmcRAqhnAKDNyhcPxKrAPAZROeuWy17vcXm8+QCgmawR
> > ll/LxgpYoAHbF685Mc2yXK8=
> > =5K+z
> > -----END PGP SIGNATURE-----
> >
> >
> >
> You could always create an alias and make rm interactive by inserting
> the -i option, hence rm would now become rm -i which would at least
> make you think twice before actually deleting it?
>
> A
Or keep a file named
-i
in very important directories, and when you issue
rm *
hopefully rm will interpret it as an argument.
However, this is not very nice. We are clever enough to use Linux -
careless clicking costs files. :)
--
Szia:
Nyizsa.
----------------------------------------------------------------------
Click to compare rates on health insurance, save big, shop here:
http://tags.bluebottle.com/fc/CAaCMPJkqMSVt23XZEnJ2RQJGjgtcv2F/
Reply to: