Gil,

I'm not sure if an ssh invocation of pax like this works in all cases.
Certainly z/OS to non-z/OS it would not work since, by default, ssh exec
sessions are translated EBCDIC/ASCII and vice versa in the z/OS OpenSSH
implementations.   I would have to check, but this seems unlikely to be
binary-clean zOS->zOS.   We've argued this before, right?

The good news is that with this APAR:
https://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.foto100/soc4q15.htm

z/OS V2R2 OpenSSH can now customize which kinds of channels are converted,
using the "ChannelConvert" option and omitting "exec" from the list.
Assuming that you use portable PAX/USTART file formats, you could use this
to send filesystems z/OS<->non-z/OS.

This feature would be a great way to run rsync on z/OS once someone ports
it :-)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS> This is still a little tricky to set up on the server side, but there
are workable techniques.   Like:

# sshd_config
Port 22
Port 2222

# zos_sshd_config
Match LocalPort  2222
   ChannelConvert shell    # exec channels are binary into port 2222


On Mon, Dec 28, 2015 at 1:35 PM, Paul Gilmartin <
[email protected]> wrote:

> On Mon, 28 Dec 2015 18:12:05 +0000, Skeldum, William wrote:
>
> >The pax command is a good choice because it can copy all files,
> directories, and symbolic links in a directory using a single command
> without overlaying any existing files.   For example:
> >cd /Service/ZOS113/var
> >pax -rvwk -pe * /var
> >
> For rsync-like behavior, one often wants to overwrite older files and
> preserve newer.
> For this, "-u" may be a better choice than "-k".
>
> ... and your command moves files only within an LPAR.  Across LPARs,
> you need something such as:
>
>     ssh other-LPAR "pax -w bin" |  # (Yes, the dreaded "ssh".)
>         pax -rvu
>
> -- gil
>
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to