From owner-freebsd-questions Wed May 16 17:36: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xyzzy.intranet.snsonline.net (dhcp.looksmart.com.au [202.53.47.178]) by hub.freebsd.org (Postfix) with ESMTP id 64F0C37B43E for ; Wed, 16 May 2001 17:36:01 -0700 (PDT) (envelope-from msergeant@snsonline.net) Received: from xyzzy.intranet.snsonline.net (localhost [127.0.0.1]) by xyzzy.intranet.snsonline.net (8.11.3/8.11.3) with SMTP id f4H0ZIY14408; Thu, 17 May 2001 10:35:20 +1000 (EST) (envelope-from msergeant@snsonline.net) Message-Id: <200105170035.f4H0ZIY14408@xyzzy.intranet.snsonline.net> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "Mark Sergeant" To: Mike Meyer , Duke Normandin <01031149@3web.net> Cc: questions@FreeBSD.ORG Subject: Re: Recycle bin for FreeBSD? :-) X-Mailer: Pronto v2.2.5 On freebsd/mysql Date: 16 May 2001 19:35:17 EST Reply-To: "Mark Sergeant" In-Reply-To: <15106.60293.141053.55469@guru.mired.org> References: <15106.60293.141053.55469@guru.mired.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. :: :: 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