Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 00:36:23 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Mel <fbsd.questions@rachie.is-a-geek.net>
Cc:        FreeBSD-Utah <kwl2363@yahoo.com>, freebsd-questions@freebsd.org
Subject:   Re: Mirroring / Cloning FreeBSD System
Message-ID:  <20080228003314.B30403@wojtek.tensor.gdynia.pl>
In-Reply-To: <200802272347.22581.fbsd.questions@rachie.is-a-geek.net>
References:  <173107.60129.qm@web50301.mail.re2.yahoo.com> <200802272347.22581.fbsd.questions@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1082399414-1204155383=:30403
Content-Type: TEXT/PLAIN; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: 8BIT

>> This environment will have two identical / separate
>> systems referred to as “System A” and “System B”
>>
>> -	I want to install FreeBSD on to “System A”
>> -	Once that installation is complete with selected
>> ports and custom applications, I want to make an exact
>> duplicate of “System A” on “System B”
>>
>> I don’t want to do this with drives in the same
>> system, rather I would like to “clone” “System A”

run liveCD on system B, make partitions as you like, newfs, mount as 
needed under say /mnt (like /mnt, /mnt/usr etc), set up network and do

cd /mnt
rsh -l root IP_of_systemA "tar --one-file-system -cf - / /usr /othermountpoint /anothermointpoint"|tar xpf -
cd /
umount /mnt

make sure you did

bsdlabel -B yourfirstdrive


on systema activate rshd and add ip of systemb to .rhosts in /root, at 
least temporarily.


keep machines in sync with rsync, prepare your rsync script, exclude list 
etc etc.
--0-1082399414-1204155383=:30403--



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