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

From: Daniel Lang <dl_at_leo.org>
Date: Tue, 20 Apr 2004 15:08:03 +0200
Hi,

Steve Ames wrote on Tue, Apr 20, 2004 at 07:50:25AM -0500:
[..]
> That's kinda silly. Unless files are backed up at every edit then most of
> us only have periodic filesystem backups. Lets say I just download a 150M
> file and then accidentally delete it. Rather than wasting time and bandwidth
> downloading again it'd be simpler to just 'unrm' it. Odds are that diskspace
> and even inode haven't been recycled yet.
[..]

simple solution:

alias rm="rm -i"

more advanced solution (sketch, chokes on options, 
but you get the idea):

function rm { 
	for arg in $_at_
	do
		mv $arg .todel.$arg
	done
}

function unrm {
	for arg in $_at_
	do
		mv .todel.$arg $arg
	done
}

untested, not recommended, but who really needs something like
this, can easily implement it.

best regards,
 Daniel
-- 
IRCnet: Mr-Spock  
   - In dieser Mail ist ein Geist, der Dich in den Hintern beisst - 
 Daniel Lang * dl_at_leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

Received on Tue Apr 20 2004 - 04:20:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:51 UTC