Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2019 17:28:15 +0200
From:      "Dr. Nikolaus Klepp" <dr.klepp@gmx.at>
To:        freebsd-questions@freebsd.org
Subject:   Re: saving "zfs send" to a Windows host
Message-ID:  <201904251728.15848.dr.klepp@gmx.at>
In-Reply-To: <20190425145210.GA62061@admin.sibptus.ru>
References:  <20190423054243.GA4659@admin.sibptus.ru> <201904230926.36122.dr.klepp@gmx.at> <20190425145210.GA62061@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Anno domini 2019 Thu, 25 Apr 21:52:10 +0700
 Victor Sudakov scripsit:
> Dr. Nikolaus Klepp wrote:
> > > 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. 
> 
> This is good advice, thank you. I've had OpenSSH installed by the
> Windows admin for me, so I can now ssh into that Windows host and even
> public key authentication works:
> 
> root@bsd:~ # ssh winhost ver
> 
> Microsoft Windows [Version 6.1.7601]
> root@bsd:~ # 
> 
> Now that I would like to send the backups to winhost to b:\my_backups\,
> what remote command should I call there? In Unix I would call "cat" or
> "dd" or even "rmt", but here?
> 
> root@bsd:~ # zfs send zroot/var/mail@test | ssh winhost "what?" 
> 
> I guess I need something in Windows that would accept a byte stream on
> stdin and save it to a file in b:\my_backups\
> 
> Any thoughts?
> 

The "cat" of windows was/is "type" .. I think ...


-- 
Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...



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