Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Apr 2019 12:07:40 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   Re: saving "zfs send" to a Windows host
Message-ID:  <20190429050740.GA80692@admin.sibptus.ru>
In-Reply-To: <201904281023.34436.dr.klepp@gmx.at>
References:  <20190423054243.GA4659@admin.sibptus.ru> <MWHPR04MB04958C6A2CF9A1D362CB2254803E0@MWHPR04MB0495.namprd04.prod.outlook.com> <20190428075047.GA50334@admin.sibptus.ru> <201904281023.34436.dr.klepp@gmx.at>

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

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

Dr. Nikolaus Klepp wrote:
> Hm .. you might use netcat on windows to receive the bytestream. https://=
nmap.org/ncat/
>=20
> fire up ssh to windows, start netcat there, close session. send zfs snaps=
hot to windows with nc, like so:
>=20
> ssh somebody@windows "ncat -l 9999 -o some-file-for-snapshot" &
> zfs .... | nc windows-host 9999

I don't like the netcat idea for the lack of authentication and access
control.=20

But I think I've found a working dd implementation for Windows at
http://www.chrysocome.net/dd which works with stdin. A quick test has
shown that the following does work:

cat r.bin | ssh winhost "b:\gw2_backup\dd bs=3D1M of=3Db:\gw2_backup\test.b=
in"

It creates test.bin where requested and its md5 is the same as that of r.bi=
n.

--=20
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

--M9NhX3UHpAaciwkO
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJcxoacAAoJEA2k8lmbXsY0lIsH/3T7XG+LOV/EZw8c/58des6H
NmzeaHNfLxV0PnMy0IrWqMg8kDYuRsmSBYsOBDYwLXDQz+iA2kvIOw+wY6hzPduK
RDA/5CVd5QU7QPYavyNFWhFX2cGPSOkYoIINsHFiklEPIB5Bfm6hLoY2WW3uTw/X
vXDi0OQTPPj/6Z01yr1GysDi7RGK0nYeSy7Y+la58puXI+8wWCLCbeThdOgkuqr6
+pX5FTfsRQPXG/e9JdYH1+niCBF6Ovqu+E8rmm1s1Se9gmIp0faByyvTllISZs/+
glZ86Ppui9p9A2RS3vYgi3sJMxoJeXmlgA4kSbCr7/9Pel39PJhSGGUZntO0Sls=
=JFyr
-----END PGP SIGNATURE-----

--M9NhX3UHpAaciwkO--



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