Sun GlassFish Enterprise Server v2.1.1 Troubleshooting Guide

ProcedureTo back up and restore a server configuration

  1. Start the Enterprise Server.

    install_dir/bin/asadmin start-domain domain_name
  2. Stop the domain.

    install_dir/bin/asadmin stop-domain domain_name
  3. Back up the domain.

    install_dir/bin/asadmin backup-domain domain_name

    Backed up directories are stored by default in the install_dir/backups directory.

  4. Make changes to the Enterprise Server configuration and/or domain(s), as desired.

  5. If necessary, restore the server and/or domain configuration to the state saved in Step 3, above.

    install_dir/bin/asadmin restore-domain --filename backup_file domain_name