Technical data

10 Recovering Failed Servers
10-6 Configuring and Managing WebLogic Server
Backing up config.xml
By default, an Administration Server stores a domain’s configuration data in a file
called
domain_name\config.xml,wheredomain_name is the root directory of the
domain.
Backup
config.xml to a secure location in case a failure of the Administration Server
renders the original copy unavailable. If an Administration Server fails, you can copy
the backup version to a different machine and restart and Administration Server on the
new machine.
WebLogic Server Archives Previous Versions of config.xml
By default, the Administration Server archives up to 5 previous versions of
config.xml in the domain-name/configArchive directory.
When you save a change to a domain’s configuration, the Administration Server saves
the previous configuration in
domain-name\configArchive\config.xml#n. Each
time the Administration Server saves a file in the
configArchive directory, it
increments the value of the
#n suffix, up to a configurable number of copies—5 by
default. Thereafter, each time you change the domain configuration:
! the archived files are rotated so that the newest file has a suffix with the highest
number,
! the previous archived files are renamed with a lower number, and
! the oldest file is deleted.
Example of Archived config.xml Naming and Rotation
In the MedRec domain, the current configuration file used by the MedRecServer is
WL_HOME\samples\server\config\medrec\config.xml. If you add a server
instance using the Administration Console, when you click the Create button,
MedRecServer saves the old
config.xml file as
WL_HOME\samples\server\config\medrec\configArchive\config.xml#2.