From owner-freebsd-questions Wed May 16 20:32:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.cybersurf.net (smtp2.cybersurf.net [209.197.145.112]) by hub.freebsd.org (Postfix) with ESMTP id 6F47337B423 for ; Wed, 16 May 2001 20:32:24 -0700 (PDT) (envelope-from 01031149@3web.net) Received: from [209.115.233.22] ([209.115.233.22]) by smtp2.cybersurf.net (Netscape Messaging Server 4.15) with SMTP id GDGN5O00.OAX for ; Wed, 16 May 2001 21:32:12 -0600 Received: by mandy.rockingd.calgary.ab.ca (sSMTP sendmail emulation); Wed, 16 May 2001 21:31:13 +4200 Date: Wed, 16 May 2001 21:31:10 -0600 From: Duke Normandin <01031149@3web.net> To: Mark Sergeant Cc: questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) Message-ID: <20010516213109.D167439@mandy.rockingd.calgary.ab.ca> References: <15106.60293.141053.55469@guru.mired.org> <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net>; from "Mark Sergeant" on Wed, May 16, 2001 at 07:35:17PM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > :: > :: $ 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. > :: > :: -- > 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