saving "zfs send" to a Windows host

Victor Sudakov vas at mpeks.tomsk.su
Mon Apr 29 05:07:43 UTC 2019


Dr. Nikolaus Klepp wrote:
> Hm .. you might use netcat on windows to receive the bytestream. https://nmap.org/ncat/
> 
> fire up ssh to windows, start netcat there, close session. send zfs snapshot to windows with nc, like so:
> 
> ssh somebody at 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. 

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=1M of=b:\gw2_backup\test.bin"

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

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20190429/fc722aaf/attachment.sig>


More information about the freebsd-questions mailing list