Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2009 17:43:56 -0500
From:      Freebsd <freebsd@optiksecurite.com>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Advice for dump/restore over SSH
Message-ID:  <378FD954-9AA0-47EA-BFB3-9EE482A0F81E@optiksecurite.com>
In-Reply-To: <20090119174619.GA43749@slackbox.xs4all.nl>
References:  <4974B9A2.4070709@optiksecurite.com> <20090119174619.GA43749@slackbox.xs4all.nl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help


Le 09-01-19 =C3=A0 12:46, Roland Smith <rsmith@xs4all.nl> a =C3=A9crit :

> 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 =20=

>> 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
> --
>

Sounds pretty interesting to me but i couldn't test right now. As nc =20
is in /usr/bin how will i not face the same problem as with ssh? Can =20
you point me to a freebsd live cd that has nc included?

Thanks a lot for your help

Martin=



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?378FD954-9AA0-47EA-BFB3-9EE482A0F81E>