FreeKB - IBM WebSphere backupConfig script
IBM WebSphere - backupConfig script

The (Linux) or backupConfig.bat (Windows) command can be used to create a backup of a WebSphere application server or profile.

When the backupConfig script is invoked from the ${WAS_INSTALL_ROOT}/bin directory, the entire application server will be backed up.



When the backupConfig script is invoked from the ${WAS_INSTALL_ROOT}/bin/profiles/your_profile/bin directory, the profile wil be backed up. In this scenario, profile "AppSrv01" will be backed up.



Linux Permissions and Ownership

The and scripts will not store the file permissions and ownership of files. For example, if file1.txt is owned by Admins and has permissions -rwxrwsr-x, the owner and permissions may not be proper after invoking the script. For this reason, it is recommended to not use the and scripts on Linux, and to instead use the TAR command to create and restore.


-nostop option

By default, the backupConfig command will stop the nodes, which means that the application servers and applications in the nodes are also stopped. This ensures that the back up does not occur while a change is being made to the master configuration, which could produce some problems when attempting to restore the backup. In a non-clustered environment, this produces some downtime, as the nodes/application servers/applications will be stopped while the backupConfig script is executing. 

Note - The nodes/application servers/application will automatically start after the backupConfig script completes its execution

The -nostop option can  be used to not stop the nodes as part of the backup. -nostop


-username -password options

If administrative security is enabled, the backupConfig command without any options will prompt you to provide a username and password. The -username and -password options can be used to provide the username and password on the command line. However, you should avoid using the -username and -password options, as the username and password can easily be intercepted using the ps command (Linux). This is another reason why the TAR command should be used instead, as the TAR command does not expose your username and password. -username your_username -password your_password


Restore a backup

The (Linux) or restoreConfig.bat (Windows) scripts are used to restore a backup.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 67fb3 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |