From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 22:09:38 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B84C16A401 for ; Fri, 28 Apr 2006 22:09:38 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2428A43D53 for ; Fri, 28 Apr 2006 22:09:36 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k3SM9QVC075860; Fri, 28 Apr 2006 17:09:27 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <44529290.9040303@daleco.biz> Date: Fri, 28 Apr 2006 17:09:20 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060426 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Philip Hallstrom References: <19592.208.11.134.3.1146246838.squirrel@mail.dfwlp.com> <20060428134010.Q83434@bravo.pjkh.com> In-Reply-To: <20060428134010.Q83434@bravo.pjkh.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Jonathan Horne , freebsd-questions@freebsd.org Subject: Re: server rebuilds and disaster recovery 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: Fri, 28 Apr 2006 22:09:38 -0000 Philip Hallstrom wrote: >> this weekend, im going to have to rebuild my 6.0 server in order to >> recover from a faulty disk (i have to eliminate a RAID1 array, and break >> rebuild the RAID5 with one more disk). >> >> all my daemons and whatnot, im pretty good at recovering. sendmail, >> apache, mysql, etc, shouldnt be a problem. >> >> what i think i need help with is, what is the best way to recover my >> previous system's user accounts? this time around my server is going to >> go from piece-by-piece updates, to a full buildworld before i build all >> the daemons. >> >> can someone recommend a good way to recover my users, or dissertate how >> they go about doing it successfully? also, any tips outside of users >> that >> you think i might benefit from in a rebuild/redeploy, would also be >> appreciated! > > > Maybe I'm not fully understanding, but why wouldn't you just backup > /etc/passwd (and all it's related master and db files), etc/group, heck, > /etc/ in general, then everyone's home directories, /var/cron/tabs and > /var/mail (or wherever you store their inbox) > > ?? and then restore them to the new boxen and run pwd_mkdb(8), of course .... And then the real question. If this box is currently functioning and all filesystems are intact, what's wrong with dump(8) and restore(8)? Kevin Kinsey -- An atom-blaster is a good weapon, but it can point both ways. -- Isaac Asimov