From owner-freebsd-isp@FreeBSD.ORG Sun Nov 30 20:00:48 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0091E16A4CE for ; Sun, 30 Nov 2003 20:00:48 -0800 (PST) Received: from smtp3.sentex.ca (smtp3.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C05D43F75 for ; Sun, 30 Nov 2003 20:00:42 -0800 (PST) (envelope-from damian@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smtp3.sentex.ca (8.12.10/8.12.10) with ESMTP id hB140exT096428; Sun, 30 Nov 2003 23:00:40 -0500 (EST) (envelope-from damian@sentex.net) Received: from pegmatite.sentex.ca (pegmatite.sentex.ca [192.168.42.92]) by lava.sentex.ca (8.12.9p2/8.12.9) with ESMTP id hB140eUq075821; Sun, 30 Nov 2003 23:00:40 -0500 (EST) (envelope-from damian@sentex.net) Received: by pegmatite.sentex.ca (Postfix, from userid 1001) id 7F20C171D9; Sun, 30 Nov 2003 23:00:29 -0500 (EST) Date: Sun, 30 Nov 2003 23:00:29 -0500 From: Damian Gerow To: Frank Laszlo Message-ID: <20031201040029.GB51594@sentex.net> Mail-Followup-To: Frank Laszlo , Lewis Watson , freebsd-isp@freebsd.org References: <000801c3b7bd$2eb54740$df0a0a0a@visionsix.net> <3FCABADF.5090001@vonostingroup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FCABADF.5090001@vonostingroup.com> X-GPG-Key-Id: 0xB841F142 X-GPG-Fingerprint: C7C1 E1D1 EC06 7C86 AF7C 57E6 173D 9CF6 B841 F142 X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new cc: freebsd-isp@freebsd.org Subject: Re: Moving to New Server.. Passwd Questions X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 04:00:48 -0000 (Quoting cleaned up.) Thus spake Frank Laszlo (laszlof@vonostingroup.com) [30/11/03 22:52]: > Lewis Watson wrote: > > >I am moving to a new server and trying to maintain user,uid, and gid info. > >I have the entire /etc directory tar'd and am wondering when I get to the > >new server what I need as far as to maintain the user info files. I am > >thinking passwd, master.passwd, and group. After I move these files I run > >pwd_mkdb - p /etc/master.passwd. Is there any need to copy spwd.db and > >pwd.db? If I understand it correctly these will be created/updated when I > >run pwd_mkdb. > > > >Also, is there a better way to sync these files from one server to > >another? > > You could use dd to mirror the disks. Thats assuming you want to copy > everything. Having moved, and participated in moving, a number of servers, we've always used dump/restore to move files over. I tried rsync once, and it works just fine *so long as you don't need to maintain the last access time* on the files you're rsync'ing. Depending on the partitions that need to be moved over (i.e. if /var/mail is mounted on its own), it can be easier to pop the old drive into the new system, and do a 'dump -0af - | restore -rf -' in the directory you want to restore into. In the case where you just want *some* of the files moved over, however, chances are rsync might be your best option. Although a 'restore -if ' would work just as well. Note that CVS would work as well, I just haven't ever used it for this. Getting back to the original question, yes. If *all* you want to maintain is userid<->username, groupid<->groupname mappings (and user passwords), then that should be all you need. But you'll also need home directories, and limits you've put in place, and any other custom configuration you'll want to copy over. - Damian