Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2019 10:30:49 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   Re: saving "zfs send" to a Windows host
Message-ID:  <20190426033049.GA80168@admin.sibptus.ru>
In-Reply-To: <20190425192744.e0d0acb4.freebsd@edvax.de>
References:  <20190423054243.GA4659@admin.sibptus.ru> <201904230926.36122.dr.klepp@gmx.at> <20190425145210.GA62061@admin.sibptus.ru> <201904251728.15848.dr.klepp@gmx.at> <20190425163412.GA63892@admin.sibptus.ru> <20190425192744.e0d0acb4.freebsd@edvax.de>

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

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

Polytropon wrote:
> > > > 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 e=
ven
> > > > public key authentication works:
> > > >=20
> > > > root@bsd:~ # ssh winhost ver
> > > >=20
> > > > Microsoft Windows [Version 6.1.7601]
> > > > root@bsd:~ #=20
> > > >=20
> > > > Now that I would like to send the backups to winhost to b:\my_backu=
ps\,
> > > > what remote command should I call there? In Unix I would call "cat"=
 or
> > > > "dd" or even "rmt", but here?
> > > >=20
> > > > root@bsd:~ # zfs send zroot/var/mail@test | ssh winhost "what?"=20
> > > >=20
> > > > 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\
> > > >=20
> > > > Any thoughts?
> > > >=20
> > >=20
> > > The "cat" of windows was/is "type" .. I think ...
> >=20
> > No, "type" does not seem to accept a byte stream from stdin, at least
> > the way Unix "cat" or "dd" do:
> >=20
> > "echo test | type > q.txt" produces a syntax error, and=20
> >=20
> > "echo test | type con > q.txt" waits forever, and when interrupted, it
> > produces an empty q.txt
>=20
> If I remember correctly, the device name is "CON:" (with a : at the
> end), but I'm not sure, it's so far away... ;-)

The ":" makes no difference.=20

"echo test | type con: > q.txt" waits forever, and when interrupted,=20
produces an empty q.txt

>=20
> Maybe you can use a command like "COPY /B CON: Q.TXT"?
>=20

No, does not work either.

It seems to me that "CON" or "CON:" is not really /dev/stdin, it's
rather /dev/tty. Or probably it's CMD.EXE's stdin, not TYPE.EXE's stdin.
Whatever.=20

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

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

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

iQEcBAEBAgAGBQJcwntpAAoJEA2k8lmbXsY08mYH/A6k4D8bq5R1wk1IFJTPPCyI
3sCLlUDpCwXQDEm8C5X3b/ZbnQIhFBZ+B42+Y8I4rFH3uTO9+8mVjQCKR6j/Xcia
4BcZvXmW2jaR/noFUawN5rxIIBE3wItFBOg1Z8Gc8Ak9DN4q0TyIm7yZlQ11xQtd
3svtz5sRzmSusMSYLvhTwu/hqVXbEDFiCawhW5lhb3UJe+zZY8rHhYzjYOLJMkS9
KmLfcsKQDsUC4prnZ2MwLV50vTmXjWa+CSHIurtm2wJ5koK5oWugP3kzYXFoa9Sq
t8NOQ/VL7U8H87CIhG1MBW+QwKq754cXPny7MgRW3wuToqd3aP18OI850WggO5o=
=R3WJ
-----END PGP SIGNATURE-----

--7JfCtLOvnd9MIVvH--



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