Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2009 18:46:19 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        FreeBSD <freebsd@optiksecurite.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Advice for dump/restore over SSH
Message-ID:  <20090119174619.GA43749@slackbox.xs4all.nl>
In-Reply-To: <4974B9A2.4070709@optiksecurite.com>
References:  <4974B9A2.4070709@optiksecurite.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

--UugvWAfsgieZRqgk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEARECAAYFAkl0vGsACgkQEnfvsMMhpyV0lACghPHYEX7Km0f/lVDYExOgJvtx
6VYAn1HPiCSTjSv990m51vKmivs5tu9v
=GyZR
-----END PGP SIGNATURE-----

--UugvWAfsgieZRqgk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090119174619.GA43749>