title: How to backup and restore deployment application in glassfish
body: <p>I want to upgrade a new version of the application that already running on my glassfish server contain domain with many applications. Before deploying new version, I have to backup the running application so I could restore it when having something wrong. I've found some ways to solve:</p>
  
  <ol>
  <li>Save the application directory, save the domain.xml.  When having problem, I will copy these files again to server. So could I re-deploy application by using this way?</li>
  <li>Backup &amp; restore domain that have the application. um.. I just only want to upgrade an application.</li>
  </ol>
  
  <p>Any help?
  Thanks,</p>