Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Restore Object using BRM (RSTOBJBRM) command restores an object or objects from the BRMS media content information. any object that was saved by the Save Object using BRM (SAVOBJBRM) command or was saved as part of a control group can be restored by the RSTOBJBRM command. The types of objects that can be restored by this command are listed on the Object types (OBJTYPE) parameter. They can be saved either as separate objects or as part of the library save operation. The RSTOBJBRM command restores the object description and contents of each object specified in the command.
Note: Using the RSTOBJBRM command, Save level (SAVLVL) parameter allows you to restore selected copies of an object from the BRMS media content information. For instance, a recovery request for copy 1 of an object will restore the next to the most recent copy of the object on the BRMS media content information (current copy is the most recent copy).
Virtual tape media and devices can be used with this command. The following restrictions apply to the use of virtual media and virtual devices.
To use this command, you must have the Backup Recovery and Media Services for iSeries, 5722-BR1, licensed program installed.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Single values: *ALL Other values (up to 50 repetitions): Generic name, name |
Required, Positional 1 |
SAVLIB | Library | Name | Required, Positional 2 |
DEV | Device | Values (up to 4 repetitions): Name, *MEDCLS | Required, Positional 3 |
PRLRSC | Parallel device resources | Element list | Optional |
Element 1: Minimum resources | 1-32, *SAV, *NONE, *AVAIL | ||
Element 2: Maximum resources | 1-32, *MIN, *AVAIL | ||
OBJTYPE | Object type | Single values: *ALL Other values (up to 50 repetitions): Character value |
Optional |
SAVLVL | Save level | 1-99, *CURRENT, *SAVDATE | Optional |
SAVDATE | Save date | Date | Optional |
ENDOPT | End of tape option | *REWIND, *LEAVE, *UNLOAD | Optional |
OPTION | Option | *ALL, *NEW, *OLD, *FREE | Optional |
MBROPT | Database member option | *MATCH, *ALL, *NEW, *OLD | Optional |
SPLFDTA | Spooled file data | *NEW, *NONE | Optional |
ALWOBJDIF | Allow object differences | Single values: *NONE, *ALL Other values (up to 4 repetitions): *AUTL, *FILELVL, *OWNER, *PGP |
Optional |
RSTLIB | Restore to library | Name, *SAVLIB | Optional |
RSTASP | Auxiliary storage pool | Character value, *SAVASP, *SYSTEM | Optional |
FROMSYS | From system | Character value, *LCL | Optional |
Top |
Specifies the name of the object that you want to restore, a generic group of objects that you want to restore, or all objects.
If the Object type (OBJTYPE) parameter is not specified when the command is run, all the object types, listed in the description of that parameter are restored, if they are in the specified library on the media or in the save file, and if they have the specified names.
This is a required parameter.
Single values
Other values (up to 50 repetitions)
Top |
Specifies the name of the library in which the objects reside that are to be restored. If the Restore to library (RSTLIB) parameter is not specified, this is also the name of the library to which the objects are restored. Specify the name of the library.
This is a required parameter.
Top |
Specifies the name of the devices used for the restore operation. the device name must already be in the BRMS device table.
Note: Multiple systems can share the use of a tape device or a media library device (MLB). When the device is a tape device (not an MLB device), BRMS will manage the use of the device across multiple systems if you indicate that the device is shared.
You can restore data from a TSM (ADSM) server using this command. You can only specify one TSM type server or *MEDCLS, which must select a TSM server. The device selected can either be *APPC, which supports SNA network protocol, or *NET, which supports TCPIP protocol.
This is a required parameter.
Note: When doing a serial restore, only one media library device can be specified. When doing a parallel restore, multiple media libraries can be specified.
Note: The special value *MEDCLS can be specified up to four times on the device parameter only if the parallel min resource is of value *NONE. Otherwise, *MEDCLS can only be specified once. BRMS will attempt to use the maximum number of devices that can be allocated for this operation.
To perform a parallel restore with more devices, the value *MEDCLS can and may only be specified once and the parallel minimum and maximum resources must be greater than one or *SAV.
Top |
Specifies the minimum and maximum number of device resources to be used in a restore operation.
Element 1: Minimum Resources
Specifies the minimum number of device resources required for a parallel restore.
Note: If a Media Library Device (MLB) is being used and the required resources are not available, the command will wait for the MLB to become available for a time period specified by the user. The wait time is determined by the value specified on the *MLB device description for INLMNTWAIT. If a *TAP device is being used and the required resources are not available, the command will fail.
Note: Transferring save files to tape does not support parallel operations.
Element 2: Maximum Resources
Top |
Specifies the type of the object that you want to restore.
This is a required parameter.
Single values
Other values (up to 50 repetitions)
Top |
Specifies the copy of the object that you want to restore from the media content information.
Top |
Specifies a save date for the object you want to restore. The most recent save of the object on the specified date will be restored. The object is not restored if no save of the object occurred on the specified date.
Note: A value must be specified for this parameter if *SAVDATE is specified for the Save level (SAVLVL) parameter.
Top |
Specifies, when volume is used, what positioning operation is automatically done on the volume after the restore operation ends. If more than one volume is included, this parameter applies only to the last volume used; all other volumes are rewound and unloaded when the end of the volume is reached.
If you specify *LEAVE and the device is a shared device, the device will not be varied off after the save operation. If you specify *LEAVE and the device is not a shared device, the device will be varied off after the save operation.
Top |
Specifies how to handle restoring each object.
Top |
Specifies for database files that exist on the system, which members are restored. Unless *MATCH is used, the member list in the saved file need not match member for member, the current version in the system.
Top |
Specifies whether saved spooled file data and attributes are restored for restored output queues.
Top |
Specifies whether differences are allowed between the saved objects and the restored objects. These differences include:
Note: To use this parameter, you need *ALLOBJ special authority.
Single values
Note: If restoring objects that BRMS saved with SAVOBJ or SAVCHGOBJ, BRMS will change the parameter to ALWOBJDIF(*FILELVL *AUTL *OWNER *PGP) for these objects to prevent the renaming.
Other values (up to 4 repetitions)
If an object already exists on the system with a different authorization list than the saved object, the object is restored with the authorization list of the object on the system. New objects that are being restored to a system that is different from which they were saved are restored and linked to their authorization list. If the authorization list does not exist on the new system, the public authority is set to *EXCLUDE.
If this value is not specified, authorization list differences are not allowed. If an object already exists on the system with a different authorization list than the saved object, the object is not restored. New objects that are being restored to a system that is different from which they were saved are restored, but they are not linked to the authorization list, and the public authority is set to *EXCLUDE.
An attempt will be made to restore existing physical files even though the physical file on the save media may have a different file level identifier or member level identifier than the physical file on the system. The physical file data will only be restored for those physical files whose format level identifiers on the save media match the format level identifiers of the corresponding physical file on the system.
If this value is not specified, file level identifier and member level identifier differences are not allowed. If an object already exists on the system with a different file level identifier or member level identifier than the saved object, the object is not restored.
If an object already exists on the system with a different owner than the saved object, the object is restored with the owner of the object on the system.
If this value is not specified, ownership differences are not allowed. If an object already exists on the system with a different owner than the saved object, the object is not restored.
If an object already exists on the system with a different primary group than the saved object, the object is restored with the primary group of the object on the system.
If this value is not specified, primary group differences are not allowed. If an object already exists on the system with a different primary group than the saved object, the object is not restored.
Top |
Specifies whether the objects are restored to a different library or to the same library where they were saved.
Top |
Specifies whether objects are restored to the auxiliary storage pool from which they were saved or to a different auxiliary storage pool. Library objects can only be restored to the system (1) auxiliary storage pool, a basic user (2-32) auxiliary storage pool, a primary auxiliary storage pool or a secondary auxiliary storage pool.
More information about object types which can be restored to auxiliary storage pools can be found in the Backup and Recovery Book.
Top |
Specifies the location and network identification of the system from which you want to restore media information to the local system.
Note: Use the Display Network Attributes (DSPNETA) command to view the system network attributes.
Note: The BRMS Network feature (Option 1) is required to use this value if a value other than *LCL is specified.
If the FROMSYS parameter is specified and the connection to the remote system could not be established then the command will not use local data to perform the restore operation. Use the Work with Media Information (WRKMEDIBRM) or Start Recovery using BRM (STRRCYBRM) commands to select and restore the object.
Top |
RSTOBJBRM OBJ(AP1000) SAVLIB(APLIB) DEV(*MEDCLS) OBJTYPE(*FILE)
This command restores an object named AP1000 which was saved from library APLIB. Any device that supports the media class assigned to the media containing AP1000 can be used in the restore operation. AP1000 is a file object.
Top |
*ESCAPE Messages
Top |