Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Taking Configuration Snapshots in JBoss EAP

When making changes to a JBoss EAP server configuration, it's often worthwhile to ensure copies of these configurations exist, both to revert to a snapshot should a change fail or simply to save a successful configuration for use on other servers. To do this, we can work with JBoss EAP's native snapshot feature to take, manage, and remove configuration snapshots.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 21, 2025
Duration
15m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Deploy a Standalone Server Based on the Provided Snapshot
    1. Stop the current JBoss EAP server:

      sudo systemctl stop jboss-eap-rhel
      
    2. Move into the JBoss EAP home directory:

       cd /opt/jboss-eap
      
    3. Start a standalone server using the 20191121-201850161standalone.xml snapshot:

       sudo ./bin/standalone.sh --server-config=standalone_xml_history/snapshot/20191121-201850161standalone.xml
      
    4. Check that you can access the management console at PUBLICIP:9990.

    5. Shut down the server with CTRL+C.

  2. Challenge

    Take a Snapshot of the Current Deployment

    Before replacing the configuration file, we want to take a snapshot of the current configuration located at /opt/jboss-eap/standalone/configuration/standalone.xml just in case something fails.

    Note: This is the configuration used by our service and the one used in the /opt/jboss/bin/standalone.sh script, unless we override it as we did in the previous task.

    1. Restart the JBoss service:

      sudo systemctl start jboss-eap-rhel
      
    2. Open the JBoss CLI:

      sudo ./bin/jboss-cli.sh
      
    3. Connect to the server:

      connect
      
    4. Take a snapshot of the current configuration:

      :take-snapshot
      
    5. Exit the CLI:

      exit
      
  3. Challenge

    Replace the Standalone Configuration
    1. We know the 20191121-201850161standalone.xml configuration is the one we wish to use. Since we know our jboss-eap-rhel service relies on /opt/jboss-eap/standalone/configuration/standalone.xml, we can just copy our snapshot there:

      sudo cp standalone/configuration/standalone_xml_history/snapshot/20191121-201850161standalone.xml standalone/configuration/standalone.xml
      
    2. Restart the service:

      sudo systemctl restart jboss-eap-rhel
      
    3. Confirm you can access the management console.

  4. Challenge

    Delete the Old Snapshot
    1. Access the JBoss CLI:

      sudo ./bin/jboss-cli.sh
      
    2. Connect to the server:

      connect
      
    3. List the available snapshots:

      :list-snapshots
      
    4. Remove the backup snapshot of the failing configuration:

      :delete-snapshot(name=20191122-133032735standalone.xml)
      
    5. Exit the CLI:

      exit
      
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight