Backing Up and Restoring an AppSpace

Backing up an AppSpace exports the current state of the specified AppSpace to a bwadmin command file. The command file can be provided to bwadmin to recreate the AppSpace. Output can be compressed to a ZIP file with the -zipped option.

Procedure

  1. To back up the current state of an AppSpace, enter the backup command at the command line, using the -s option to identify the name of the destination file. Use the -domain option with the appspace argument in the command line, with the name of the AppSpace to back up. The AppSpace can be either a local AppSpace or an AppSpace in a bwagent in the agent network. By default, destination files are written to the current working directory.
    This example backs up AppSpace MyAppSpace in Domain MyDomain to a command file named myappspace.cmd
    BW_HOME\bin>bwadmin backup -s myappspace.cmd -domain MyDomain appspace MyAppSpace
    
  2. To restore the AppSpace:
    1. Enter the bwadmin command at the command line, providing the name of the backup command file. The following example recreates the AppSpace MyAppSpace.
      BW_HOME\bin>bwadmin -f myappspace.cmd
      

      If you are restoring to a different location, you need to update the command file as follows:

      • The agent name will point to localhost by default; you need to change this to the name of the machine you are restoring to.
      • Update the domain home to point to the absolute path to the new location.
      • Update the path to the application archive (EAR) file to an absolute path.
    2. Use the bwadmin show appspaces command from the command line, with the -domain option to verify the restore.