Skip to main content  
        iSeries home   |   Easy400  
Freeware
 
Introduction
Setup
Save and Transfer
 Restore
FAQ
 
 Download
 
 

 
4 - Restore

When the time comes for recovering objects, the actions to be taken depend on the following:

  • Whether your backup on tape was performed on the source system or on the remote system
  • Whether you have used command vrtsav/VRTSAVSYS or some other procedure of yours to performs the save.

Here are some possible scenarios.



Scenario 1 - Restore objects from the last save on virtual tape
Do the following:

  1. Run command
    vrtsav/VRYTAPON DEV(virtual_device_name)
    to make the virtual tape image catalog available.
  2. Run command
    DSPTAP DEV(virtual_tape_device_name) DATA(*SAVRST)
    to make sure that you are referring to the desired save contents.
  3. Run the appropriate restore command specifying parameter
    DEV(virtual_tape_device_name)

Scenario 2 - Restore large amount of objects from a save tape generated on the remote system
Use this approach when you need to restore a large amount of objects spread across libraries and/or IFS directories.

  1. Upload the appropriate virtual tape volume(s) on the remote system. There are two possible cases:
    1. On the source system you used command
      vrtsav/VRTSAVSYS ... TFRVRTDTA(*YES) DUPTAP(*YES)
      to perform the save, to transfer the virtual tape image to the remote system and to backup it on tape, or you performed the save on virtual tape with your own commands, but you used command
      vrtsav/TFRVRTDTA ... DUPTAP(*YES)
      to transfer the virtual tape image to the remote system and to backup it on tape.
      In such cases, on the remote system
      1. Run command
        vrtsav/DUPTAPVRT FROMDEV(real_device_name) TOVRTDEV(virtual_device_name)
        to upload the appropriate save data to the virtual tape.
    2. On the source system you used your own commands to perform the save on virtual tape and/or to transfer the virtual image to the remote system and to have it backed up on tape.
      In such a case, on the remote system
      1. Run command
        vrtsav/VRYTAPON DEV(virtual_device_name)
        to make the virtual tape image catalog available.
      2. Run command
        DUPTAP FROMDEV(real_device_name) TODEV(virtual_device_name)
        to upload the appropriate save data to the virtual tape.
  2. Transfer the save image to the local system: run command
    vrtsav/TFRVRTDTA FROMDEV(virtual_device_name) DUPTAP(*NO)
    Please note that on the remote system you must have defined the source system via command vrtsav/DFNRMTSYS.
  3. Restore the desired objects on the local system:

Scenario 3 - Restore library objects from a save tape generated on the remote system
Use this approach when you need to restore a library or a subset of library objects.

  1. On the remote system, create a temporary library (do not use library QTEMP)
  2. On the remote system, restore - from the appropriate save tape- restore the desired library or set of library objects needed by the source system. In the restore command, specify the temporary library name in parameter RSTLIB.
  3. On the remote system, save the temporary library into a save file.
  4. Use the Object Distribution Facility (ODF) command ODSTR to send this save file to the source system.
  5. On the source system, restore the objects from the save file to the appropriate library, by specifting its name in parameter RSTLIB.




previous page
next page