From owner-freebsd-questions@freebsd.org Tue Apr 23 07:26:39 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 9FF991590E41 for ; Tue, 23 Apr 2019 07:26:39 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from vie01a-dmta-at50-1.mx.upcmail.net (vie01a-dmta-at50-1.mx.upcmail.net [62.179.121.136]) (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 2FF2E92EDB for ; Tue, 23 Apr 2019 07:26:38 +0000 (UTC) (envelope-from dr.klepp@gmx.at) Received: from [172.31.216.41] (helo=vie01a-pemc-psmtp-at50) by vie01a-dmta-at50.mx.upcmail.net with esmtp (Exim 4.91) (envelope-from ) id 1hIpoz-0000Zm-Ub for freebsd-questions@freebsd.org; Tue, 23 Apr 2019 09:26:29 +0200 Received: from [192.168.0.100] ([85.126.97.210]) by vie01a-pemc-psmtp-at50 with SMTP @ mailcloud.upcmail.net id 3jSL2000g4YLlkt0BjSL9s; Tue, 23 Apr 2019 09:26:20 +0200 X-SourceIP: 85.126.97.210 X-CNFS-Analysis: v=2.2 cv=O6RJhF1W c=1 sm=2 tr=0 a=/Ac8Q0O/YFE5LOLfUiYZVw==:117 a=/Ac8Q0O/YFE5LOLfUiYZVw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=VswzGj635RJv1fXEa7IA:9 a=sAO4kTrEDhWFf2tr:21 a=xTKcZAAUVRvRwSDZ:21 a=QEXdDO2ut3YA:10 From: "Dr. Nikolaus Klepp" To: freebsd-questions@freebsd.org Subject: Re: saving "zfs send" to a Windows host Date: Tue, 23 Apr 2019 09:26:36 +0200 User-Agent: KMail/1.9.10 References: <20190423054243.GA4659@admin.sibptus.ru> In-Reply-To: <20190423054243.GA4659@admin.sibptus.ru> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201904230926.36122.dr.klepp@gmx.at> X-Rspamd-Queue-Id: 2FF2E92EDB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Tue, 23 Apr 2019 07:26:39 -0000 Anno domini 2019 Tue, 23 Apr 12:42:43 +0700 Victor Sudakov scripsit: > Dear Colleagues, > > What is the most convenient way to stream a "zfs send" output through > the network to a file on a Windows host, for backup purposes? > > I used to use mount_smbfs to mount a Windows share and capture "zfs > send" output to a file, but now that SMBv1 is not supported anymore, > mount_smbfs has become useless. > > I don't mind installing some agent to the Windows host which will be > able to receive "zfs send" output to a network port (through netcat for > example) and save it there, but I don't know what it could be. It should > also support some form of authentication (at least not permit an > arbitrary host to overwrite the backups). > > Can you recommend something? > Use sshd, just like you would in unix only environment. Install OpenSSH on windows (e.g. https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse ), use public key authentication only without passphrase (yes, security, I know, but you probably want the thing wirking first). I do not know if the m$ sshd supports chroot, but if it does, use it. Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...