IBM Support

Restoring Objects from a Save File to an IFS Directory

Troubleshooting


Problem

This document provides an example of using the RST command to restore IFS objects saved from one IFS directory to a different directory in the IFS.

Resolving The Problem

First, we need to find out which directory the objects were saved from. To do this, issue the DSPSAVF LIBNAME/SAVFNAME command:
image 3929



In this example, the objects were saved from directory /QIBM/USERDATA/OS400/SQE/KTRISKO_126117.

Now, we have to create the directory to which we want to restore these objects, if it does not already exist. For this, we would issue a MKDIR '/MYDIRECTORY/SUBDIRECTORY' command.

After the directory has been created, use the RST command to restore the objects from the save file to the new directory. The syntax, in this example:

RST DEV('/qsys.lib/libname.lib/script.file') OBJ(('/QIBM/UserData/OS400/SQE/KTRISKO_126117' *INCLUDE '/mydirectory/subdirectory'))

In general, the syntax for this command is:

RST DEV('/qsys.lib/LIBRARYNAME.lib/SAVFNAME.file') OBJ(('/OLDDIRECTORYNAME' *INCLUDE '/NEWDIRECTORYNAME'))

This is the Restore Object (RST) screen.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

Historical Number

N1012747

Document Information

Modified date:
29 May 2020

UID

nas8N1012747