disaster recovery - did I do the right thing?

Ray ray at stilltech.net
Tue May 8 07:15:39 UTC 2007


On Monday 07 May 2007 11:16 pm, Ian Smith wrote:
<snip>
> Ray, I've been watching this thread, and you've had some good advice
> about backups etc, but if you really did 'rm -f *' in /usr/local (NOT
> 'rm -rf *') then it's very likely that you deleted no files at all.
<snip>

sorry, should have said
rm -rf  *



>
> The only file 'rm -f *' in /usr/local would remove here is a comment I
> made for myself with 'touch moved_portsnap_from_var_db'; 'rm *' (with or
> without -f) does not remove directories (unless you also use -r).
>
> I can't say what was in _your_ /usr/local, but I've just checked on 4.8,
> 4.10, 5.5-STABLE and 6.1-RELEASE systems, and none of them install plain
> files in /usr/local at all, just directories.  So you may be lucky ..

This was a postmortem question, by the time I'd posted, I'd already 
reinstalled from scratch. The machine wasn't in production yet and I had made 
good notes on paper, so It wasn't the end of the world.
Ray

>
> Cheers, Ian
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list