Cloning a FreeBSD system|
Posted June 6, 2003
Simplifying by assuming a single partition, a secure network, and ucspi-tcp already installed on
Install fresh hard disk in
Rather than installing, go to the "configure" submenu and do "fdisk" and "slice." Use
Go back to the main menu and choose "fixit," then "live filesystem on CD-ROM."
Press alt-f4 to switch to the emergency shell.
Start tcpserver on
tcpserver -vRHl 0 -c 1 10.23.1.1 1234 sh -c ' echo HTTP/1.1 200 OK echo Content-type: application/octet-stream echo exec dump -0f - /'
Go back to
cd /mnt fetch -q -o - http://10.23.1.1:1234/foo | restore -rvf -