...
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.
Panel |
---|
Html bobswift |
<pre>
//jobname JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*
// JCLLIB ORDER=SBI.UNV.SUNVSAMP
//*
//STEP1 EXEC UCMDPRC,
// STDIN='DISP=SHR,DSN=hlq.BKUP.TAR.Z'
//MYSCRIPT DD *
# Check if the directory exists. If it does not, create it.
if test ! -d /export/home/username/fnd
then mkdir /export/home/username/fnd || exit 8
fi
cd /export/home/username/fnd || exit 8
# Note: Not all tar commands recognize the 'B' argument. If you
# receive an error message indicating this from the remote
# UNIX system, remove the 'B' argument.
# The 'B' argument is used to force tar to read multiple
# times to fill the block.
tar -xzvBf - || exit 8
//SYSIN DD *
-script myscript
-host hostname
-userid username
-pwd password
-stdin -mode binary
/*
</pre>
|
SYSIN Options
The SYSIN options used in this example are:
...