From owner-freebsd-questions@FreeBSD.ORG Fri Sep 18 14:59:30 2009 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 7B1BA106566B for ; Fri, 18 Sep 2009 14:59:30 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id E2C898FC12 for ; Fri, 18 Sep 2009 14:59:29 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id n8IExSrZ085394; Fri, 18 Sep 2009 16:59:28 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id EBBC4BAAE; Fri, 18 Sep 2009 16:59:27 +0200 (CEST) Date: Fri, 18 Sep 2009 16:59:27 +0200 From: Roland Smith To: Andrew Gould Message-ID: <20090918145927.GA24180@slackbox.xs4all.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Questions Mailing List Subject: Re: updating pc's to the same date/time 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, 18 Sep 2009 14:59:30 -0000 --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 18, 2009 at 09:14:59AM -0500, Andrew Gould wrote: > I would like to do a fresh installation of FreeBSD 7.2 and then update > it to the same state as another computer so I can transfer it's > packages and have them in sync with the ports. Is my understanding of > the system correct in that all I have to do is: >=20 > 1. Copy /usr/src and /usr/ports to the new computer. If you copy the installed applications, you don't have to copy /usr/ports. > 2. Rebuild and install the kernel and "world". > 3. Copy and install the packages I created on the first computer. Ports and packages install in /usr/local by default. So after you have built/installed all ports on the first machine, use tar(1) and nc(1) to copy the whole /usr/local tree over. Subsequently, after you have updated the po= rts on the first machine, use rsync(1) to keep both copies syncronized; that is much faster than copying. (In this scenario the second machine doesn't need /usr/ports or /var/db/ports and /var/db/pkg at all!) Remember to enable any daemons in /etc/rc.conf as necessary. Alternatively, you could use nfs to export /usr/local from the first to the second machine. But this will probably be significantly slower in day-to-day usage. And if the first machine is down, the second one looses its ports. := -( Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkqzoE8ACgkQEnfvsMMhpyXXgwCeKBnAtBEV4avj0UhdEJIE9Jkj KJ4AniJLXrYevYZqUjkFjbmRGqqGLawv =p85Z -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--