25 Aralık 2013 Çarşamba

Backup script of WAS config

#!/bin/bash
# To backup the config of WAS

cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin

TIME=`date +"%b-%d-%y"`                                     # Add date in Backup File Name. 
FILENAME="30.184.Dmgr01config-$TIME.zip"      # Backup file name format. 

./backupConfig.sh $FILENAME -nostop

sleep 5

mv $FILENAME /opt/configyedekleri

sleep 5

cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin

TIME=`date +"%b-%d-%y"`                                         # Add date in Backup File Name. 
FILENAME="30.184.AppSrv01config-$TIME.zip"      # Backup file name format. 

./backupConfig.sh $FILENAME -nostop

sleep 5

mv $FILENAME /opt/configyedekleri

16 Aralık 2013 Pazartesi

Backup and Restore a profile in WebSphere Application Server V8.5



 Backup and Restore a Profile using ./manageprofiles.sh

BACKUP

Stop the server and the running processes for the profile that you want to backup

/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/  dizininde aşağıdaki gibi çalıştırılır.  ( profile_root/bin dizininde )

./manageprofiles.sh -backupProfile -profileName AppSrv01 -backupFile /opt/AppSrv01backup16122013manageprofiles.zip

RESTORE

1. Stop the server and the running processes for the profile that you want to restore
2. Manually delete the directory for the profile from the file system.
3. Run the -validateAndUpdateRegistry option of the manageprofiles command.
4. Restore the profile by using the -restoreProfile option of the manageprofiles command

/opt/IBM/WebSphere/AppServer/bin dizinine gidilir ve aşağıdaki gibi çalıştırılır. ( install_root/bin dizininde )

./manageprofiles.sh -restoreProfile -backupFile /opt/AppSrv01backup16122013manageprofiles.zip