Chapter 30. System recovery 1057
You can run this command from the was_home/bin directory using the -profileName option to
specify the profile to back up. You can alternatively execute the command from the
profile_root/bin directory to back up only that specific profile.
The backupConfig command compresses the configuration files and stores the compressed
file in the current directory or a specified path. The compressed file can be restored using the
restoreConfig command. By default, backupConfig stops all servers in the configuration
before performing the backup. The syntax is shown in Example 30-1.
Example 30-1 backupConfig command
Usage: backupConfig [backup_file] [-nostop] [-quiet] [-logfile <filename>]
[-replacelog] [-trace] [-username <username>] [-password <password>] [-profileName
<profile>] [-help]
The backup_file parameter specifies the file where the backup is to be written. If you do not
specify a backup file name, a unique name is generated, and the file is stored in the working
directory. If you specify a backup file name with a directory name other than the current
directory, the specified directory must exist.
For more information about these command options and usage, refer to the information
center at the following website:
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd
-mp&topic=rxml_backupconfig
Example 30-2 shows the use of the backupConfig command to back up the profile AppSrv01
configuration.
Example 30-2 backupConfig example
[root@saw211-RHEL2 bin]# pwd
/opt/IBM/WebSphere/AppServer/bin
[root@saw211-RHEL2 bin]# ./backupConfig.sh -profileName AppSrv01
ADMU0116I: Tool information is being logged in file
/home/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/backupConfig.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU5001I: Backing up config directory
/home/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config to file
/home/opt/IBM/WebSphere/AppServer/bin/WebSphereConfig_2012-06-21_1.zip
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU2010I: Stopping all server processes for node was85AppSrv01
Realm/Cell Name: <default>
Username: admin
Password:
ADMU0510I: Server server1 is now STOPPED
..................................................................................
..........................................................................
ADMU5002I: 812 files successfully backed up
30.2.2 Restoring a profile configuration
Use the restoreConfig command to restore a profile configuration from an archive that was
previously generated using backupConfig for that profile. The restoreConfig command