Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2000 19:29:08 +0200 (CEST)
From:      Christian Kratzer <ck@toplink.net>
To:        Presence <presence@irev.net>
Cc:        InvictaNet Customer Support <support@invictanet.co.uk>, Freebsd-ISP <freebsd-isp@FreeBSD.ORG>
Subject:   Re: move home dirs
Message-ID:  <Pine.BSF.4.10.10010041925100.42558-100000@babylon.toplink.net>
In-Reply-To: <Pine.BSF.4.21.0010031457020.3759-100000@irev.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tue, 3 Oct 2000, Presence wrote:

> 
>   Funny thing, I just did this last night, moving all the users and
> directories from an old 3.5 server to the new 4.1 box.  I used NFS to
> mount the two servers together for a short while and ran on the new
> server:
> 
> (cd /mnt/old/usr/home/ ; tar -cvlf - .)|(cd /usr/home/; tar xpf -)
> 
>  It moved everything across perfectly, including .dot files and
> permissions.  I did the same thing for the /var/mail directory and
> /var/log/httpd/ directories while I was at it.

I usually use tar over a ssh connection to accomplish similar stuff
something on the lines of

 (ssh -l root OLDSERVER tar -C /usr/home cf - . )|(cd /usr/home/; tar xpf -)

Runs significantly faster than the respective scp command.

>   Also, if you have a problem where user id's aren't being mapped to
> usernames like I did, try running vipw, make a single change somewhere,
> then save.  It seemed to force everything to align up nicely. 

you propably just copied the master.passwd over from one server to another
without updating the pwd.db and spwd.db files which are the ones that
are really being used.  pwd_mkdb -p master.passwd.new would be your friend
here to get the master.passwd installed corretly.

Greetings
Christian Kratzer
Toplink

-- 
TopLink Internet Services GmbH			ck@171.2.195.in-addr.arpa
Christian Kratzer				http://www.toplink.net/
Phone: 	+49 7032 2701-0
Fax: 	+49 7032 2701-19	FreeBSD spoken here!



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10010041925100.42558-100000>