![]()
Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows
Restoring the HTTP instance on i5/OS
This topic provides instructions on restoring HTTP instance data associated with a specific profile on IBM® i5/OS using the rstHttpInstance.sh script. The instructions describe running the script manually from a QShell session. You can also schedule the script to run periodically as part of a comprehensive backup and recovery strategy.
Follow these steps to restore HTTP instance data on i5/OS:
- Start the QShell Interpreter by entering the following on an i5/OS command line:
STRQSH- Change to the tools directory by entering the following:
cd /QIBM/ProdData/PortalExpress/V6/Tools- Enter the following command to restore the HTTP instance data:
rstHttpInstance.sh parametersThe command takes the following parameters as listed in the table, with these being required:
- the profile whose HTTP instance data you want to restore (-p)
- either a media device (-m) and a save date (-d) or save file library (-s)
Parameter names are case-sensitive.
Parameter Description -help (-h) Displays help for the command
-profileName (-p) The profile whose HTTP data you want to restore.
-mediaDevice (-m) Specifies a media device to save to
-saveFileLib (-s) Specifies a library where save files are created to save the data. The library name must be 10 characters or less.
-logDir (-l) Where to save log files for this command. If a log directory is not specified using this parameter, logs are created by default in /savRstWp60/profile/logs, where profile is the name of the profile whose data is being restored.
If you specify a path using this parameter, the command will create only the last directory in the path. The other directories in the path must already exist. For example, if you specify -l /wcs01/logs, the /wcs01 directory must already exist.
-date (-d) The date of the HTTP instance data to restore. Required if using -m. This is in the systems date/time format. For example, 060105 for June 1st 2005 (if Month-Day-Year format being used on the system).
Check QDATFMT system value if you are not sure of the proper format.
-forceDown (-f) Force the Deployment Manager server down. If -f isn't used and server is active, the restore will fail.
-seqNum (-q) The starting sequence number of the file set you want to restore. Normally you will not need this parameter, but if you saved multiple copies of the same instance on the same day on the same tape, you may need to distinguish which save set you want. This parameter is only valid with -m option and the media device must be a tape drive.
-verify (-v) Verifies the command. If this parameter is used, the command outputs what would be done according to the parameters being used, without actually performing the backup.
Examples:
- In the following example, HTTP servers associated with profile wp01 and saved media device tap01 on June 1, 2005 are restored.
rstHttpInstance.sh -profileName wp01 -mediaDevice tap01 -date 060105- The following example is the same as the previous one, except the parameter short names are used and the -v parameter is specified to verify what the command will do before running it.
rstHttpInstance.sh -v -p wp01 -m tap01 -d 060105
Parent topic:
Backup and restore on i5/OS