File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to take JBoss configuration Backup ??" Watch "How to take JBoss configuration Backup ??" New topic
Author

How to take JBoss configuration Backup ??

sai bhasker
Greenhorn

Joined: Sep 05, 2008
Posts: 1
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


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

Joined: May 14, 2008
Posts: 5778
    
    7

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to take JBoss configuration Backup ??
 
Similar Threads
batch file script
Problem while lauching Eclipse Indigo
Error with Eclipse Galileo+Tomcat plugin
server.log file
Jboss authentication