This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes How to take JBoss configuration Backup ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to take JBoss configuration Backup ??" Watch "How to take JBoss configuration Backup ??" New topic

How to take JBoss configuration Backup ??

sai bhasker

Joined: Sep 05, 2008
Posts: 1
i am new to JBOSS could anybdy tell me hw to take backup of configuration in JBoss Application Server ?
in WebSphere we had a cmd line and to restore there is
please help me
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

Do you just want to backup the whole server config directory?

So if you are running the default configuration you would just copy the $JBOSS_HOME/server/default directory. Then to restore, you copy it back.
Do need for any complex scripts.

It always seems to make more sense when you just look at JBoss as being a set of files and that is all, not anything that gets installed underneath the covers. No wizard behind the curtain or anything like that, just simple files.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Peter Johnson

Joined: May 14, 2008
Posts: 5812

The JBoss AS configuration information is spread out through dozens of xml (and other) configuration files, so Mark's recommendation is the easiest way to backup a configuration.

When backing up the entire directory, you might not want to backup the log, tmp or work directories - they will be rebuilt. Then there is the data directory - you might or might not want to back that up, depending on how you are using it (Hypersonic persists its database in that directory).

You could also back up only those files (in the lib, deploy, deployers, conf directories) whose last update timestamps are more recent that the files provided with the release. For example, to backup the config for AS 5.0.1.GA, backup anything not dated Feb 23, 2009 at 8:52 PM (I'm at UTC-8, so the dates you have might be different).

JBoss In Action
jQuery in Action, 2nd edition
subject: How to take JBoss configuration Backup ??
Similar Threads
Error with Eclipse Galileo+Tomcat plugin
Problem while lauching Eclipse Indigo
server.log file
batch file script
Jboss authentication