Advice for dump/restore over SSH

Roland Smith rsmith at xs4all.nl
Mon Jan 19 09:46:28 PST 2009


On Mon, Jan 19, 2009 at 12:34:26PM -0500, FreeBSD wrote:
> My question is how do you clone PC over SSH (it would be too much a PITA 
> to open each case to plug the HD directly in the source PC).

Would it have to be ssh? Why not just use netcat [nc(1)] if both
machines are on your local network?

Try something like:

<destination machine, booted e.g. from CD>
newfs /dev/foo
mount /dev/foo /mntroot
cd /mntroot
nc -l 65000| restore -rvf -

<source machine>
dump -0 -a -C 8 -L -u -f - / | nc <dest> 65000

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090119/961c6b70/attachment.pgp


More information about the freebsd-questions mailing list