Back up UNIX Directory to zOS Dataset
Back up UNIX Directory to z/OS Dataset
This example demonstrates using UCMD Manager on z/OS to back up a UNIX directory, using the UNIX tar and compress commands, to a z/OS data set.
The backup script is allocated to the ddname MYSCRIPT. The script writes the tar.Z file to its standard out which is transmitted by the UCMD Server to the UCMD Manager which writes it to the UNVOUT ddname. The data set hlq.BKUP.TAR.Z allocated to the UNVOUT ddname will contain the tar.Z backup file.
The data set hlq.BKUP.TAR.Z must be a variable record format data set. Any valid record length or valid block size will work.
SYSIN Options
The SYSIN options used in this example are:
Option |
Description |
Host name or IP address of the remote system on which to execute the script. | |
Remote user ID with which to execute the command. | |
Password for the user ID. | |
ddname from which to read the script file. The script file is sent to the remote system by the UCMD Manager for execution. | |
Starts the stdout options. All options read afterwards are applied to the stdout file. The first option not recognized as a standard file option terminates the stdout option list. | |
Transfer mode for the stdout file: binary. Since a backup file is a tar, compressed format contains binary data, it should not be translated as text data. |
Components
Universal Command Manager for z/OS