Skip site navigation (1)Skip section navigation (2)
Date:      16 May 2001 19:35:17 EST
From:      "Mark Sergeant" <msergeant@snsonline.net>
To:        Mike Meyer <mwm@mired.org>, Duke Normandin <01031149@3web.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Recycle bin for FreeBSD? :-)
Message-ID:  <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net>
In-Reply-To: <15106.60293.141053.55469@guru.mired.org>
References:  <15106.60293.141053.55469@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I had another idea as far as this goes, akin to having a /trash dir or somesuch
invoking the command rm blah will mv blah to /trash/$pwd/blah as such anything
that gets rm'ed with the same name can be recovered. Then a crontab entry could
be created to clean out files in trash older than 7 days or some such.

Cheers,

Mark

On Wed, 16 May 2001 16:05:09 -0500, Mike Meyer said:

:: Duke Normandin <01031149@3web.net> types:
::  > Try the attached scripts. I hope that this is close to what you were
::  > looking for. Later.... 
::  
::  Someone really should do these things *right* and put them in a port.
::  
::  To see what's wrong with Duke's script, consider the following sequence:
::  
::  $ rm My_Precious_File
::  <realize you weren't where you thought you were, so...>
::  $ cd old
::  $ rm My_Precious_File
::  
::  And you can no longer recover the current version of
::  My_Precious_File. If you do this on Windows, you wind up with two
::  copies of My_Precious_File, and it's not obvious which is which.
::  
::  	<mike
::  --
::  Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
::  Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
::  
::  To Unsubscribe: send mail to majordomo@FreeBSD.org
::  with "unsubscribe freebsd-questions" in the body of the message
::  
::  

-- 
Mark Sergeant
Unix Systems Administrator

Fortune follows...

A free society is one where it is safe to be unpopular.
		-- Adlai Stevenson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105170035.f4H0ZIY14408>