restoreConfig command

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 syncronization does not occur during the restoration. If the configuration directory already exists, it will be renamed before the restoration occurs. One can run this command from the $WAS_HOME/bin directory of a WebSphere Application Server installation or a network deployment installation.

 

Syntax

restoreConfig <backup_file> [options]

where backup_file specifies the file the backup is written to. If you do not specify one, a unique name is generated.

 

Parameters

The options for the restoreConfig command follow:

 

-nostop

Tells the restoreConfig command not to stop the servers before backing up the configuration.

 

-quiet

Suppresses the progress information that the restoreConfig command prints in normal mode.

 

-location

Specifies the location where the backup files should be restored. The location defaults to the WAS_HOME/config directory.

 

-location<directory_name>

Specifies the directory where the backup file should be restored. The location defaults to the WAS_HOME/config directory.

 

-logfile <filename>

Specifies the location of the log file to which information gets written.

 

-replacelog

Replaces the log file instead of appending to the current log.

 

-trace

Generates trace information into the log file for debugging purposes.

 

-username <name>

Specifies the user name for authentication if security is enabled in the server. Acts the same as the -user option.

 

-user <name>

Specifies the user name for authentication if security is enabled in the server. Acts the same as the -username option.

 

-password <password>

Specifies the password for authentication if security is enabled in the server.

 

-help

Prints a usage statement.

 

-?

Prints a usage statement.

 

Examples

The following example demonstrates correct syntax:

restoreConfig WebSphereConfig_2003-04-22.zip
This example restores the given file to the WAS_HOME/config directory.

restoreConfig WebSphereConfig_2003-04-22.zip -location /tmp -nostop
This example creates a file called myBackup.zip and does not stop any servers before beginning the backup.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.