I wrote these to do a simple system clone using a USB disk. It’s pretty simple using dump and restore, but it does take a bit to get all of the commands and arguments correct.
To use, install the two scripts on a USB drive. Mount the USB drive on the source system, and run “dump_all.sh”. Be sure to change the labels to match your configuration.
To restore, boot a FreeBSD DVD into Fixit mode, mount the USB drive to /mnt, and run restore_all.sh. Again, be sure to change the device labels to match your system. If your disks are different sizes, you’ll also have to modify the bsdlabel file that is generated by dump_all.sh.
Warning: Do not blindly run these scripts. They’re posted here for reference only, and will break your system if you do not understand how to use them.