Wednesday 25 June 2014

Server Configuration Backup and Restore Profile in Websphere Application Server

Server Configuration Backup and Restore Profile in Websphere Application Server



The Server Configuration Backup option is supported for the WebSphere Application Server. However, backing up and restoring of the server configuration must be at the same version-level of the server

Backup Config
The backupConfig command is a simple utility to backup the configuration of your node to a file. Before executing this command make sure that your configuration is in the consistent state and then synchronize to all the nodes.
By default, backupConfig stops the server, so it is important to get a consistent copy. You can use the -nostop to prevent stopping the server.
cd to <WAS_INSTALLATION_ROOT>/IBM/WebSphere/AppServer/profiles/Dmgr01/bin folder
Then execute ./backupConfig.sh backup_filename_yyyy-mm-dd.zip
The above script will take backup of the dmgr only, if you want to take backup of the profiles, then better to run backconfig from WAS_HOME/bin and specify profile name as option as show below
cd to <WAS_INSTALLATION_ROOT>/bin
./backupConfig.sh backup_filename_yyyy-mm-dd.zip - profileName Server1
If you specify a path and file name in [backup_file] the file will be saved in that location. If not, saved in the same directory as the command backupConfig, with name WebSphereConfig_YYYY-MM-DD.zip as show below.
[was61@test ~]$ cd /opt/IBM/WebSphere/AppServer/bin/
[was61@test bin]$ ./backupConfig.sh -profileName node -nostop
ADMU0116I: Tool information is being logged in file
           /opt/IBM/WebSphere/AppServer/profiles/Profile01/node/logs/backupConfig.log
ADMU0128I: Starting tool with the node profile
ADMU5001I: Backing up config directory
           /opt/IBM/WebSphere/AppServer/profiles/Profile01/node/config to file
           /opt/IBM/WebSphere/AppServer/bin/WebSphereConfig_2014-06-25.zip
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ADMU5002I: 628 files successfully backed up

The command syntax is as follows:

backupConfig.sh [backup_file] [-nostop] [-quiet] [-logfile <filename>]
[-replacelog] [-trace] [-username <username>] [-password <password>]
[-profileName <profile>] [-help]




Restore Config
The restoreConfig command to restore the configuration of your node after backing up the configuration using the backupConfig command. By default, all servers on the node stop before the configuration restores so that a node synchronization does not occur during the restoration. If the configuration directory already exists, it is renamed before the restoration occurs.

The command syntax is as follows:
 
restoreConfig.sh backup_file [-location restore_location] [-quiet] 
[-nostop] [-nowait] [-logfile <filename>] [-replacelog] [-trace] 
[-username <username>] [-password <password>] [-profileName <profile>] 
[-help]
 
                                                             


If the configuration to be restored exists, the config directory is renamed to profile.old (then profile.old_1, etc.) before the restore begins. The command then restores the entire contents of the profile_root/config directory

16 comments:

  1. Hi,

    The bigger issue that we need to concern ourselves with is whether or not we have the need for an email database in order to become effective IBM Websphere Email Database in our email marketing

    ReplyDelete
  2. Thank you for the Article, Your Blog is having Lotzz of Stuff about Webshpere Application Server... Here i am also Sharing Information on IBM WebSphere Server Administration Training. It will Definately useful for Everyone.

    ReplyDelete
  3. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

    rpa Training in Chennai

    rpa Training in bangalore

    rpa Training in pune

    blueprism Training in Chennai

    blueprism Training in bangalore

    blueprism Training in pune

    rpa online training

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    automation anywhere training in chennai

    automation anywhere training in bangalore

    automation anywhere training in pune

    automation anywhere online training

    blueprism online training

    rpa Training in sholinganallur

    rpa Training in annanagar

    ReplyDelete
  5. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Data Science with Python training in chenni
    Data Science training in chennai
    Data science training in velachery
    Data science training in tambaram
    Data Science training in OMR
    Data Science training in anna nagar
    Data Science training in chennai
    Data science training in Bangalore

    ReplyDelete
  6. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 
    java training in marathahalli | java training in btm layout

    java training in jayanagar | java training in electronic city

    java training in chennai | java training in USA

    selenium training in chennai

    ReplyDelete
  7. Really you have done great job,There are may person searching about that now they will find enough resources by your post
    python training in rajajinagar
    Python training in btm
    Python training in usa
    Python training in marathahalli

    ReplyDelete
  8. Hello I am so delighted I found your blog, I really found you by mistake, while I was looking on Yahoo for something else, anyways I am here now and would just like to say thanks for a tremendous post. Please do keep up the great work.

    angularjs-Training in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  9. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts
    online Python training
    python training in chennai

    ReplyDelete
  10. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 
    Selenium Online training | Selenium Certification Online course-Gangboard

    Selenium interview questions and answers

    Selenium interview questions and answers

    Selenium Online training | Selenium Certification Online course

    ReplyDelete
  11. Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my candidates...
    Online DevOps Certification Course - Gangboard
    Best Devops Training institute in Chennai

    ReplyDelete
  12. I love the blog. Great post. It is very true, people must learn how to learn before they can learn. lol i know it sounds funny but its very true. . .

    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  13. First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics, i will be always checking your blog thank
    Websphere Application Server Training in Bangalore

    ReplyDelete