Bootstrap FreeKB - IBM WebSphere - Backup a profile using the manageprofiles backupProfile command
IBM WebSphere - Backup a profile using the manageprofiles backupProfile command

Updated:   |  IBM WebSphere articles

If you are not sure what a profile is, refer to this article.

There are a number of options can be be used with the manageprofiles.sh (Linux) or manageprofiles.bat (Windows) script.

 

The -listProfiles option can be used to list the profiles on the system. In this example, there are two profiles, AppSrv01 and AppSrv02.

~]# ${WAS_INSTALL_ROOT}/bin/manageprofiles.sh -listProfiles
[AppSrv01, AppSrv02]

 

If the profile contains a node server, the stopNode command would be used to stop the node before the profile is backed up.

${WAS_INSTALL_ROOT}/profiles/your_profile/bin/stopNode.sh

 

Or if the profile contains a deployment manager, the stopManager command would be used to stop the deployment manager before the profile is backed up.

${WAS_INSTALL_ROOT}/profiles/your_profile/bin/stopManager.sh

 

In this example, a file named backup.xml will be created.

AVOID TROUBLE

The manageprofiles.sh command uses the wsadmin tool to connect to the host listed in the profiles serverindex.xml file. Almost always, the hostName in the profiles serverindex.xml file will match the hostname of the local system. However, if by chance DNS resolves the hostName in the profiles serverindex.xml file to some other system, wsadmin will attempt to make an SSH connection to whatever system DNS resolves the hostname too.

${WAS_INSTALL_ROOT}/bin/manageprofiles.sh -backupProfile -profileName profile001 -backupFile /path/to/backup.xml

 

Typically, the -adminUserName and -adminPassword options are not needed as the admin username and password will be defined in the soap.client.props file. However, these options can be used, typically just for testing or debugging purposes.

${WAS_INSTALL_ROOT}/bin/manageprofiles.sh -backupProfile -profileName profile001 -backupFile /path/to/backup.xml -adminUserName john.doe -adminPassword itsasecret

 

If the creation of the backup file is successful, something like this should be returned.

INSTCONFSUCCESS: Success: The profile backup operation was successful.

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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