A way to recover deleted files (just contents) from USF2

Holger Kipp Holger.Kipp at alogis.com
Wed Apr 21 05:48:17 PDT 2004

Stuart Barkley (sab at 4gh.net) wrote: 

>On Tue, 20 Apr 2004 at 15:08 +0200, Daniel Lang wrote:
>> simple solution:
>> alias rm="rm -i"

>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),

More information about the freebsd-current mailing list