From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 23:07:11 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD2E11065687 for ; Mon, 19 Jan 2009 23:07:11 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from gprs.fido.ca (gprs.fido.ca [207.245.252.17]) by mx1.freebsd.org (Postfix) with ESMTP id 895EE8FC0C for ; Mon, 19 Jan 2009 23:07:11 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from [10.127.5.30] (unknown [24.114.235.12]) by gprs.fido.ca (Fido GPRS SMTP Gateway) with ESMTP id 999EF8C184; Mon, 19 Jan 2009 17:43:12 -0500 (EST) References: <4974B9A2.4070709@optiksecurite.com> <20090119174619.GA43749@slackbox.xs4all.nl> Message-Id: <378FD954-9AA0-47EA-BFB3-9EE482A0F81E@optiksecurite.com> From: Freebsd To: Roland Smith In-Reply-To: <20090119174619.GA43749@slackbox.xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Date: Mon, 19 Jan 2009 17:43:56 -0500 Cc: "freebsd-questions@freebsd.org" Subject: Re: Advice for dump/restore over SSH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2009 23:07:12 -0000 Le 09-01-19 =C3=A0 12:46, Roland Smith 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: > > > newfs /dev/foo > mount /dev/foo /mntroot > cd /mntroot > nc -l 65000| restore -rvf - > > > dump -0 -a -C 8 -L -u -f - / | nc 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=