//STDIN DD DUMMY //STDPARM DD * SH hbackup '/global/zcx/instances/ZCXVL01/*'; hbackup '/global/zcx/cfg/properties/ZCXVL01-user.properties'; 

## Recover a zCX instance 

To recover a zCX instance, you must recover all the VSAM linear data sets of that instance. The instance must be stopped for a recovery. 

You then recover the VSAM linear data sets from a backup that was created with DFSMSdss as shown in Example 7-24 on page 156. The backup of the VSAM linear data sets also included the zFS that contains the configuration information of the zCX instance. You must unmount this zFS before doing the recovery, if it is still mounted. Also, after recovery, you must mount the zFS again. 

If the zFS of the instance is not part of the backup, you can skip the UNMOUNT and REMOUNT steps. 

//ZCXPRV8R JOB (ACCNT),LANGER,CLASS=A,MSGCLASS=T,MSGLEVEL=(1,1), // REGION=32M //UNMOUNT EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD *  UNMOUNT FILESYSTEM('ZCX.REDB.ZCXVL01.ZFS') //RECOVER EXEC PGM=ADRDSSU //BACKUP DD DISP=SHR,DSN=ZCX.REDB.BACKUP.ZCXVL01 //SYSPRINT DD SYSOUT=* //SYSIN DD *  RESTORE DS(INCLUDE(**)) INDD(BACKUP) //REMOUNT EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD *  MOUNT FILESYSTEM('ZCX.REDB.ZCXVL01.ZFS') TYPE(ZFS) MODE(RDWR) - MOUNTPOINT('/global/zcx/instances/ZCXVL01') - AUTOMOVE 

Attention:  Be aware that the backups were done on open VSAM linear data sets. When recovering the instance from these backups, there might be additional actions necessary to recover some of the containers data inside of the instance to a consistent point in time. 

If the instance‘s zFS was not part of the restored data sets, you must recover those files separately. Again, be aware that the properties file of the instance might be located outside of the zFS that was backed up for this instance. 

As of z/OS 2.4, you can use DFSMShsm to recover UNIX files on a file level as shown in Example 7-25. 

//ZCXPRV8R JOB (ACCNT),LANGER,CLASS=A,MSGCLASS=T,MSGLEVEL=(1,1) //RECOVER EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * 

