A way to recover deleted files (just contents) from USF2
Daniel Lang
dl at leo.org
Tue Apr 20 06:20:06 PDT 2004
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 $@
do
mv $arg .todel.$arg
done
}
function unrm {
for arg in $@
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6020 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040420/086cf265/smime.bin
More information about the freebsd-current
mailing list