+

Search Tips   |   Advanced Search

restoreConfig command

Use the restoreConfig command to restore the configuration of our 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.

Syntax:


Options

The following example demonstrates correct syntax:

The following example restores the given file to the /tmp directory and does not stop any servers before beginning the restoration:

The following example restores the configuration stored in...

...to the configuration for profile profile:

If we restore the configuration to a directory that is different from the directory that was backed up when we performed the backupConfig command, we might need to manually update some of the paths in the configuration directory.


Notes

If we directly make changes to the application files in...

...a process known as "hot deployment", but do not make the same changes to the application files in...

...the changes might be overwritten.

For Linux the backupConfig command does not save file permissions or ownership information. The restoreConfig command uses the current umask and effective user ID (EUID) to set the permissions and ownership when restoring a file. If it is required that the restored files have the original permissions and ownership, use the tar command (available on all UNIX or Linux systems) to back up and restore the configuration.

For AIX if we are using a logical directory for app_server_root/config, the restoreConfig command will not work.