Restore UNIX Directory Backup from zOS Dataset to UNIX Directory

Restore UNIX Directory Backup from z/OS Dataset to UNIX Directory

This example demonstrates using UCMD Manager on z/OS to restore a directory on a UNIX system from a tar.Z backup maintained on the z/OS system. See Back up UNIX Directory to zOS Dataset to see how the backup data set was created.

The UNIX script uses the tar command to extract the files to be restored from the tar.Z backup. The tar command is directed to read the tar.Z file from its standard input with the tar command line option -f -, which results in it reading from the UCMD Manager UNVIN ddname. The Manager UNVIN ddname allocates the tar.Z backup data set that was created previously.


SYSIN Options

The SYSIN options used in this example are:

Option

Description

-script

ddname from which to read the script file. The script file is sent to the remote system by UCMD Manager for execution.

-host

Host name or IP address of the remote system on which to execute the script

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-stdin

Starts the stdin options. All options read afterwards are applied to the stdin file. The first option not recognized as a standard file option terminates the stdin option list.

-mode

Transfer mode for the stdin 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