Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2001 21:31:10 -0600
From:      Duke Normandin <01031149@3web.net>
To:        Mark Sergeant <msergeant@snsonline.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Recycle bin for FreeBSD? :-)
Message-ID:  <20010516213109.D167439@mandy.rockingd.calgary.ab.ca>
In-Reply-To: <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net>; from "Mark Sergeant" on Wed, May 16, 2001 at 07:35:17PM
References:  <15106.60293.141053.55469@guru.mired.org> <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 16, 2001 at 07:35:17PM -0500, Mark Sergeant wrote:

> 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
> -- 
> Mark Sergeant
> Unix Systems Administrator

Hell of a constructive suggestion, Mark. I was thinking of something
along that very line. Thanks!
-- 
-duke
Calgary, Alberta, Canada


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?20010516213109.D167439>