By enabling the Archive , the AdminServer can automatically backup the domain configuration .
ConfigArchive.py
adminurl=’t3://localhost:7001’
adminuser=’weblogic’
adminpass=’welcome123’
connect(adminuser,adminpass,adminurl)
domainRuntime()
edit()
startEdit()
cmo.setConfigurationAuditType('logaudit')
cmo.setConfigBackupEnable(true)
cmo.setArchiveConfiguration(250)
save()
activate()
exit()
Once the script is executed , we can validate the change by navigating to weblogic admin console –>Domain on left panel->Advance in General configuration
When ever admin server starts the domain configuration is automatically backup/archive into config-original.jar and once admin server is started properly it makes backup of DOMAIN_HOME/config directory and stores it in DOMAIN_HOME/config-booted.jar
No comments:
Post a Comment