From owner-freebsd-questions@FreeBSD.ORG Mon May 7 17:19:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07F7816A401 for ; Mon, 7 May 2007 17:19:51 +0000 (UTC) (envelope-from questions@totaldiver.net) Received: from mail.totaldiver.net (fl-209-26-20-205.sta.embarqhsd.net [209.26.20.205]) by mx1.freebsd.org (Postfix) with ESMTP id A2B3913C4AD for ; Mon, 7 May 2007 17:19:50 +0000 (UTC) (envelope-from questions@totaldiver.net) Received: from WRKSTN210.totaldiver.net (router.tegogroup.com [71.122.228.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.totaldiver.net (Postfix) with ESMTP id 1BB9AB859; Mon, 7 May 2007 13:19:48 -0400 (EDT) X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 07 May 2007 13:19:26 -0400 To: ray@stilltech.net,freebsd-questions@freebsd.org From: Jeff Palmer In-Reply-To: <200705051705.43504.ray@stilltech.net> References: <200705051705.43504.ray@stilltech.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Message-Id: <20070507171949.1BB9AB859@mail.totaldiver.net> Cc: Subject: Re: disaster recovery - did I do the right thing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 17:19:51 -0000 At 07:05 PM 5/5/2007, Ray wrote: >Hello all, >I did something stupid the other day (sleep deprivation combined with >a "clever" hack were the main reasons), and I'm just curious if I did the >right thing afterwards. > >The mistake: >/usr/local/# rm -f * >note that root was running bash as a shell at the time, found >in /usr/local/bin or something. > >What I did was to start over, reinstall from scratch. >my question, was there an easier way? >thanks, >Ray Ray, Good quality backups are a must. Even a filesystem snapshot would have helped in the above scenario. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html The link above has great info about creating and using filesystem snapshots. If you had one, you could have just mounted the snapshot, and copied over the files/folders you accidentally removed. Jeff