The restoreConfig command is a simple utility to restore the configuration of your node after backing up the configuration using the backupConfig command. By default, all servers on the node stop before the configuration restores so that a node synchronization does not occur during the restoration. If the configuration directory already exists, it is renamed before the restoration occurs. For more information about where to run this command, see the Using command line tools article.
The backupConfig command does not save authorities which may have been granted to the profile's config directory structure. The restoreConfig command sets the owner of the directory structure and its contents to QEJBSVR and restores private authorities to the QTMHHTTP and QNOTES user profiles (if they exist). It does not restore any other private authorities which may have been granted.
Note: The QEJBSVR user profile must have *R authority to the directory path specified in backup_file. If no path is specified, QEJBSVR must have *R authority to the current working directory.
Syntax
The command syntax is as follows:
restoreConfig <backup_file> [options]where backup_file specifies the file to be restored. If you do not specify one, the command will not run.
Parameters
The following options are available for the restoreConfig command:
Usage scenario
The following examples demonstrate correct syntax:
restoreConfig WebSphereConfig_2003-04-22.zip
The following example restores the configuration stored in /home/mydir/myprofileBackup.zip to the configuration for profile myprofile:
restoreConfig /home/mydir/myprofileBackup.zip -profileName myprofileThe following example restores the given file to the /tmp directory and does not stop any servers before beginning the restoration:
restoreConfig WebSphereConfig_2003-04-22.zip -location /tmp -nostop
Be aware that if you restore the configuration to a directory that is different from the directory that was backed up when you performed the backupConfig command,
you may need to manually update some of the paths in the configuration directory.
Related reference
backupConfig command