Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 1997 17:55:33 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        imp@village.org
Cc:        hackers@freebsd.org
Subject:   Re: Question about making a new machine from an old one
Message-ID:  <199712170155.RAA04988@vader.cs.berkeley.edu>
In-Reply-To: <199712170102.SAA00624@harmony.village.org> (message from Warner Losh on Tue, 16 Dec 1997 18:02:13 -0700)

next in thread | previous in thread | raw e-mail | index | archive | help
 * mount new-disk-a /gerbils
 * mkdir /gerbils/usr /gerbils/var /gerbils/home
 * mount new-disk-d /gerbils/usr
 * mount new-disk-e /gerbils/var
 * mount new-disk-f /gerbils/home

(mount these with "-o async", that will make the rest much faster.)

After this, I usually just do a

===
cd /
find -dx . | cpio -dump /gerbils
find -dx usr var home | cpio -dump /gerbils
vi /gerbils/etc/<whatever>
===

That's how I duplicated the 20 machines in our disk array here.  (Of
course, you probably don't want the "/home" to be copied, but you get
the idea.)

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712170155.RAA04988>