From owner-freebsd-questions@FreeBSD.ORG Fri Oct 2 09:15:25 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 DE474106568B for ; Fri, 2 Oct 2009 09:15:24 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by mx1.freebsd.org (Postfix) with ESMTP id 31B8B8FC15 for ; Fri, 2 Oct 2009 09:15:23 +0000 (UTC) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091002091512.YZRP17029.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Fri, 2 Oct 2009 10:15:12 +0100 Received: from catflap.slightlystrange.org ([82.21.107.64]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20091002091512.YHZE13254.aamtaout01-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Fri, 2 Oct 2009 10:15:12 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id 30E02680D; Fri, 2 Oct 2009 10:15:09 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) by catflap.slightlystrange.org (Postfix) with SMTP id 86678673E for ; Fri, 2 Oct 2009 10:15:08 +0100 (BST) Received: by torus.slightlystrange.org (sSMTP sendmail emulation); Fri, 2 Oct 2009 10:15:08 +0100 From: "Daniel Bye" Date: Fri, 2 Oct 2009 10:15:08 +0100 To: freebsd-questions@freebsd.org Message-ID: <20091002091507.GA19609@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <80173.56174.qm@web56206.mail.re3.yahoo.com> <200910012345.n91NjCcK048650@banyan.cs.ait.ac.th> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <200910012345.n91NjCcK048650@banyan.cs.ait.ac.th> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.0-RC1 i386 X-Cloudmark-Analysis: v=1.0 c=1 a=aDaptznB6TUA:10 a=ehNlctqhnw0A:10 a=6I5d2MoRAAAA:8 a=Xc3V6j4kAWphB4t7F6sA:9 a=17AyCpREVK4iPbGvbncA:7 a=utK4RcZeANxWc7py13QD373kJysA:4 a=SV7veod9ZcQA:10 a=sBEH7G0ggvQciTfLJocA:9 a=EvQ4pWZXKphF8MYSwt0tEICqyD8A:4 Subject: Re: migrating users from one machine to another machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 09:15:25 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 02, 2009 at 06:45:12AM +0700, Olivier Nicole wrote: > Hi, >=20 > > What is the best way of migrating users from one machine (FreeBSD > > 6.3) to a new machine (FreeBSD 7.2)? >=20 > > I need to migrate their user account settings (shell, password, > > expiry etc) and also their data that they have in their directories. >=20 > Basically: >=20 > - you need to vipw on both machine and copy the user accounts from the > old machine to the new machine, that is fast; Or copy /etc/passwd from the old machine to the new one, and run=20 pwd_mkdb, which is essentially what vipw does anyway. And don't forget to sync your groups file as well! Dan >=20 > - you need to copy the home directories of your users from one machine > to the other, that can take long time if you have a lot of users > with a lot of data. >=20 > To be sure that there is no change being made by the users while you > are copying the data/accounts, you must disable any login during the > copy process. >=20 > You can practice copying the accounts while the machines are online > (login enabled); but be certain to do a final copy with the machine > offline (login disabled). >=20 > If copying data would take too long time and you cannot afford to put > the system offline for such a long period, you could install rsync on > both machines. >=20 > - keep machines online and rsync the users data from the old machine > to the new one. >=20 > - repeat rsyncing indefinitely, this will continue copying file that > has changed. >=20 > - put the machine offline and do a last rsync: that one should not > take too long as it will only copy what has changed since the very > last run of rsync. >=20 >=20 > Another way regarding the users' data, if they reside on a separate > hard disk, you can simply physically mount that hard disk in the new > machine. >=20 > Best regards, >=20 > Olivier > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkrFxJsACgkQixf5fBYiFmrx8ACg2vzxtL2U6dEyeLW1HcvtZ6Pm yVAAn3iaYHOoPeo7tK62IYLQu9QLdqYZ =7V5z -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--