Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to take JBoss configuration Backup ??

 
sai bhasker
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
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 backupConfig.sh and to restore there is restoreConfig.sh
please help me
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic