+

Search Tips   |   Advanced Search


Restoring the HTTP instance

This topic provides instructions on restoring HTTP instance data associated with a specific profile on IBM i5/OS using the restoreHttpInstance script.

To restore HTTP instance data:

  1. Type STRQSH on the command line to start the QShell Interpreter.

  2. Change to the /QIBM/ProdData/PortalExpress/V61/Tools directory.

  3. Enter the restoreHttpInstance.sh parameters command to restore the HTTP instance data: Use the following parameters listed in the table with the above task; the following parameters are required:

    -profileName (-p)

    Name of the profile whose HTTP instance data you want to restore

    -mediaDevice (-m) and -date (-d) or -saveFileLib (-s)

    Specifies the media device where the profile is save, the date the profile was saved, or the library where the saved profile is stored

    The library name must be 10 characters are less.

    -forceDown (-f)

    Stops the servers associated with the profile; for example WebSphere_Portal and the HTTP server

    If you do not enter this parameter, manually stop the servers before running this task.

    Parameter names are case-sensitive.


    Table 1. Optional parameters for use with the script restoreHttpInstance

    Parameter Description
    -help (-h)

    Displays help for the command

    -logDir (-l)

    Specifies 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.

    -seqNum (-q)

    Specifies 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

restoreHttpInstance.sh -profileName wp01 -mediaDevice tap01 -date 060105

In this example, HTTP servers associated with profile wp01 and saved media device tap01 on June 1, 2005 are restored.

restoreHttpInstance.sh -v -p wp01 -m tap01 -d 060105

This example is the same as the previous example, except the parameter short names are used and the -v parameter is specified to verify what the command will do before running it.


Parent topic:

Backing up and restoring profiles