Weblogic Suite

/manageprofiles.sh -create -profileName AppSrv03 -profilePath ~/WebSphere/AppServer/profiles/AppSrv03 -templatePath ~/WebSphere/AppServer/profileTemplates/default -enableAdminSecurity true -adminUserName wasadmin -adminPassword secret

d8=`date '+%Y%m%d'`

cd /BackupDirectory

mkdir $d8

cd $d8

~/AppServer/bin/backupConfig.sh -nostop

Schedule with crontab

On Source Server

./manageprofiles.sh -backupProfile -profileName AppSrv03 -backupFile AppSrv01_XXXXXX.zip

On Target Server

./manageprofiles.sh -restoreProfile -backupFile AppSrv01_XXXXXX.zip

AppServer/bin

./wsadmin.sh -conntype NONE -lang jython

>AdminConfig.list('ServerIndex')

>AdminConfig.modify(u'(cells/waspreNode02Cell/nodes/waspreNode02|serverindex.xml#ServerIndex_1)', "[[hostName wasuat]]")

>AdminConfig.show(u'(cells/waspreNode02Cell/nodes/waspreNode02|serverindex.xml#ServerIndex_1)', 'hostName')

>AdminConfig.save()

Deleting Prilfe

./manageprofiles.sh -delete -profileName AppSrv01