From owner-freebsd-questions@freebsd.org Mon Apr 29 05:07:42 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF0E51580877 for ; Mon, 29 Apr 2019 05:07:42 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E99B78BC66 for ; Mon, 29 Apr 2019 05:07:41 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=/BUrTAiAmiCGhx1FrNWH3TEUU6tYIK8l/Q+uatzp7pE=; b=K2KJ5adzA/Yn2wmJIJkyzh34JX 5pW3Vdi5YZ5kUcH79ZoJ+HuiPg90nxJqEw3+OGnitqqo/T5R5RAYQaAWPEukYCYvHgTPpggzfu8Mu zKi3avIIxeT5wFSb07+qlMmoIzLTCzGGFQflwXBIUKRiHIptQudG4TBrkylTSIF904IQ=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hKyVw-000L1Q-Eg for freebsd-questions@freebsd.org; Mon, 29 Apr 2019 12:07:40 +0700 Date: Mon, 29 Apr 2019 12:07:40 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: Re: saving "zfs send" to a Windows host Message-ID: <20190429050740.GA80692@admin.sibptus.ru> References: <20190423054243.GA4659@admin.sibptus.ru> <20190428075047.GA50334@admin.sibptus.ru> <201904281023.34436.dr.klepp@gmx.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <201904281023.34436.dr.klepp@gmx.at> X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.11.4 (2019-03-13) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2019 05:07:43 -0000 --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--