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
- 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
MyAppSpacein DomainMyDomainto a command file namedmyappspace.cmdBW_HOME\bin>bwadmin backup -s myappspace.cmd -domain MyDomain appspace MyAppSpace - To restore the AppSpace:
- Enter the
bwadmincommand at the command line, providing the name of the backup command file. The following example recreates the AppSpaceMyAppSpace.BW_HOME\bin>bwadmin -f myappspace.cmdIf you are restoring to a different location, you need to update the command file as follows:
- The agent name points to
localhostby default. You need to change this to the name of the machine that 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.
- The agent name points to
- Use the
bwadmin show appspacescommand from the command line, with the-domainoption to verify the restore.
- Enter the