From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 05:48:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1CBA16A4CF for ; Wed, 21 Apr 2004 05:48:16 -0700 (PDT) Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71FAA43D3F for ; Wed, 21 Apr 2004 05:48:15 -0700 (PDT) (envelope-from Holger.Kipp@alogis.com) Received: from intserv.int1.b.intern (localhost [127.0.0.1]) by alogis.com (8.11.1/8.9.3) with SMTP id i3LCmAb67626; Wed, 21 Apr 2004 14:48:10 +0200 (CEST) (envelope-from hk@alogis.com) Message-Id: <200404211248.i3LCmAb67626@alogis.com> Date: Wed, 21 Apr 2004 12:48:05 +0000 From: Holger Kipp To: sab@4gh.net, current@freebsd.org X-Mailer: phpGroupWare (http://www.phpgroupware.org) MIME-version: 1.0 Content-type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-description: Mail message body cc: hk@alogis.com Subject: Re: A way to recover deleted files (just contents) from USF2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Holger.Kipp@alogis.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 12:48:17 -0000 Stuart Barkley (sab@4gh.net) wrote: >On Tue, 20 Apr 2004 at 15:08 +0200, Daniel Lang wrote: > >> simple solution: >> alias rm="rm -i" >s/simple/horrible/ > >Go ahead and set this up on your system and start relying upon it. >Then help a friend on his system and wipe out all his files because >you started relying upon the non-standard behavior. IMHO relying on snapshots is also a very bad idea as this might place a very big (tm) burdon on the system, eg if you really want to delete lots of files. And usually, if you want to delete files, you use rm. If you don't, you want to use mv anyway ;-) Someone brought up the idea of a recyclebin, so the best might be to create another rm, eg rrm (recycle-rm) that will move all files that are to be deleted to lost+found with a unique id as name and append the description of origin etc. to a user-specicif descriptor file, also found in lost+found. Add another command like edb (empty dustbin) to delete all relevant files of the specific user, of user root or all users from lost+found and update the descriptor-files (all filesystems or only specific ones). Hmm - maybe a good thing for /usr/ports ;-) Just my 2cents (Euro), Holger