From owner-freebsd-questions@FreeBSD.ORG Thu Oct 1 23:45:17 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 AC0C5106568D for ; Thu, 1 Oct 2009 23:45:17 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id 569DD8FC20 for ; Thu, 1 Oct 2009 23:45:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 0131E3A3844; Fri, 2 Oct 2009 06:45:13 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= references:subject:subject:in-reply-to:from:from:message-id:date :date:received:received:received; s=selector1; t=1254440713; x= 1256255113; bh=2T59aRzEJsdYTrxdQ3TKoOhWZRQEJoLO9V7Y4bSRITU=; b=e wSRN0WBVmOHkgjzY3gUgtnVz74jcQpFEFJmMvfiIyYOxGYSE5W72sVxDd9LmGtuD lVHFwz1+trGiQ2H6wQbWRFcW6IxNB+kHhAIGFNHGGqSA7i0RnZ3UDvgakI3WgTAc WIo+vczi+HK7zkWC6ECnwAmQgBj3fID80UgOWVnlo4= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by localhost (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7Rtw19NDH2+E; Fri, 2 Oct 2009 06:45:13 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 487BF3A3839; Fri, 2 Oct 2009 06:45:13 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.3/8.14.3/Submit) id n91NjCcK048650; Fri, 2 Oct 2009 06:45:12 +0700 (ICT) (envelope-from on) Date: Fri, 2 Oct 2009 06:45:12 +0700 (ICT) Message-Id: <200910012345.n91NjCcK048650@banyan.cs.ait.ac.th> From: Olivier Nicole To: aaflatooni@yahoo.com In-reply-to: <80173.56174.qm@web56206.mail.re3.yahoo.com> (message from Aflatoon Aflatooni on Thu, 1 Oct 2009 12:20:06 -0700 (PDT)) References: <80173.56174.qm@web56206.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: migrating users from one machine to another machine 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, 01 Oct 2009 23:45:17 -0000 Hi, > What is the best way of migrating users from one machine (FreeBSD > 6.3) to a new machine (FreeBSD 7.2)? > I need to migrate their user account settings (shell, password, > expiry etc) and also their data that they have in their directories. Basically: - you need to vipw on both machine and copy the user accounts from the old machine to the new machine, that is fast; - 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. 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. 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). 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. - keep machines online and rsync the users data from the old machine to the new one. - repeat rsyncing indefinitely, this will continue copying file that has changed. - 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. 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. Best regards, Olivier