From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 21:53:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6F40106564A for ; Thu, 18 Dec 2008 21:53:35 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from smtp184.iad.emailsrvr.com (smtp184.iad.emailsrvr.com [207.97.245.184]) by mx1.freebsd.org (Postfix) with ESMTP id C56218FC18 for ; Thu, 18 Dec 2008 21:53:35 +0000 (UTC) (envelope-from fsb@thefsb.org) Received: from relay8.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay8.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 233B2208C6B for ; Thu, 18 Dec 2008 16:53:35 -0500 (EST) Received: by relay8.relay.iad.mlsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id 0C98D208C62 for ; Thu, 18 Dec 2008 16:53:35 -0500 (EST) User-Agent: Microsoft-Entourage/12.10.0.080409 Date: Thu, 18 Dec 2008 16:53:31 -0500 From: Tom Worster To: "freebsd-questions@freebsd.org" Message-ID: Thread-Topic: ports and disaster recovery Thread-Index: AclhWxDiiO3wvBUDUkyj1kiLKzyHPw== Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: ports 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: Thu, 18 Dec 2008 21:53:36 -0000 i'm thinking about how to prepare for disaster recovery, e.g. a disk fails and is replaced, on a server in a group of remote servers. assume that policy and procedures are in place to keep freebsd up to date and portmaster is used to keep ports up to date. my idea is to use portmaster -gt at initial setup so that reconfiguration and compilation of the ports can be avoided. backups of /usr/ports/packages would be kept on each server in the group so they can be quickly copied back to the repaired server with the new disk. what, if any, other data besides the package .tbz files do i need backup and restore to get installed ports back to baseline? is anything from /var/db required? and what about the order of tasks in the restore? 1. datacenter staff install freebsd X.Y-RELEASE from CD then i remotely : 2. freebsd-update 3. restore the packages from neighboring server in the group 4. install ports from the packages with pkg_add 5. restore application, local config files and resume service then 6. portsnap and all the remaining tidy up or does 6 need to go before 4?